summaryrefslogtreecommitdiff
path: root/docs/tutorial
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-19 00:15:33 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-19 00:15:33 +0000
commitd63729fee31145b556ddf49f2a29d636d9a57307 (patch)
tree2f7070c03ed3b169369a15813c3f5be6c5d252fe /docs/tutorial
parentc8968d99c61e32e5c8e602a4c53f8d7bdce1964b (diff)
downloadllvm-d63729fee31145b556ddf49f2a29d636d9a57307.tar.gz
llvm-d63729fee31145b556ddf49f2a29d636d9a57307.tar.bz2
llvm-d63729fee31145b556ddf49f2a29d636d9a57307.tar.xz
Delete the Module object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial')
-rw-r--r--docs/tutorial/JITTutorial1.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/tutorial/JITTutorial1.html b/docs/tutorial/JITTutorial1.html
index 5228982ead..87b7ed6da8 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(&amp;llvm::cout));
PM.run(*Mod);
+ delete Mod;
return 0;
}
</pre>
@@ -161,7 +162,7 @@ function will interoperate properly with C code, which is a good thing.</p>
<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");