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 5228982..87b7ed6 100644
--- a/docs/tutorial/JITTutorial1.html
+++ b/docs/tutorial/JITTutorial1.html
@@ -81,6 +81,7 @@
PM.add(new PrintModulePass(&llvm::cout));
PM.run(*Mod);
+ delete Mod;
return 0;
}
</pre>
@@ -161,7 +162,7 @@
<div class="doc_code">
<pre>
Value* tmp = builder.CreateBinOp(Instruction::Mul,
- x, y, "tmp");
+ x, y, "tmp");
Value* tmp2 = builder.CreateBinOp(Instruction::Add,
tmp, z, "tmp2");