summaryrefslogtreecommitdiffstats
path: root/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-01 21:22:36 +0000
committerOwen Anderson <resistor@mac.com>2009-07-01 21:22:36 +0000
commit1cf085d558fd73f2599fb68e600365dd20502e2b (patch)
tree39bfcf795980a39bd173e8cbc60962da057bbd9d /llvm/examples/HowToUseJIT/HowToUseJIT.cpp
parent52337414b78f00aa7ff498e5872fd428996e8fe5 (diff)
downloadbcm5719-llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.tar.gz
bcm5719-llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.zip
Hold the LLVMContext by reference rather than by pointer.
llvm-svn: 74640
Diffstat (limited to 'llvm/examples/HowToUseJIT/HowToUseJIT.cpp')
-rw-r--r--llvm/examples/HowToUseJIT/HowToUseJIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/HowToUseJIT/HowToUseJIT.cpp b/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
index f11c3e256e6..67345479162 100644
--- a/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
+++ b/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
@@ -55,7 +55,7 @@ int main() {
LLVMContext Context;
// Create some module to put our function into it.
- Module *M = new Module("test", &Context);
+ Module *M = new Module("test", Context);
// Create the add1 function entry and insert this entry into module M. The
// function will have a return type of "int" and take an argument of "int".
OpenPOWER on IntegriCloud