From: Bill Wendling Date: Mon, 19 May 2008 00:15:33 +0000 (+0000) Subject: Delete the Module object. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d63729fee31145b556ddf49f2a29d636d9a57307;p=oota-llvm.git Delete the Module object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51233 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/tutorial/JITTutorial1.html b/docs/tutorial/JITTutorial1.html index 5228982ead8..87b7ed6da8d 100644 --- a/docs/tutorial/JITTutorial1.html +++ b/docs/tutorial/JITTutorial1.html @@ -81,6 +81,7 @@ int main(int argc, char**argv) { PM.add(new PrintModulePass(&llvm::cout)); PM.run(*Mod); + delete Mod; return 0; } @@ -161,7 +162,7 @@ function will interoperate properly with C code, which is a good thing.

   Value* tmp = builder.CreateBinOp(Instruction::Mul,
-                                    x, y, "tmp");
+                                   x, y, "tmp");
   Value* tmp2 = builder.CreateBinOp(Instruction::Add,
                                     tmp, z, "tmp2");