diff --git a/llvm/docs/tutorial/JITTutorial1.html b/llvm/docs/tutorial/JITTutorial1.html index 77570164035a..1de1a9d8061c 100644 --- a/llvm/docs/tutorial/JITTutorial1.html +++ b/llvm/docs/tutorial/JITTutorial1.html @@ -90,11 +90,12 @@ Module* makeLLVMModule() {
-  Constant* c->getOrInsertFunction("mul_add",
-  /*ret type*/                     IntegerType::get(32),
-  /*args*/                         IntegerType::get(32),
-                                   IntegerType::get(32),
-                                   IntegerType::get(32));
+  Constant* c = mod->getOrInsertFunction("mul_add",
+  /*ret type*/                           IntegerType::get(32),
+  /*args*/                               IntegerType::get(32),
+                                         IntegerType::get(32),
+                                         IntegerType::get(32),
+  /*varargs terminated with null*/       NULL);
   
   Function* mul_add = cast<Function>(c);
   mul_add->setCallingConv(CallingConv::C);
@@ -140,6 +141,8 @@ Module* makeLLVMModule() {
                                     tmp, z, "tmp2");
 
   builder.CreateRet(tmp2);
+  
+  return mod;
 }