aboutsummaryrefslogtreecommitdiff
path: root/llvm/examples/Fibonacci/fibonacci.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/Fibonacci/fibonacci.cpp
parent52337414b78f00aa7ff498e5872fd428996e8fe5 (diff)
downloadllvm-1cf085d558fd73f2599fb68e600365dd20502e2b.zip
llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.tar.gz
llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.tar.bz2
Hold the LLVMContext by reference rather than by pointer.
llvm-svn: 74640
Diffstat (limited to 'llvm/examples/Fibonacci/fibonacci.cpp')
-rw-r--r--llvm/examples/Fibonacci/fibonacci.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Fibonacci/fibonacci.cpp b/llvm/examples/Fibonacci/fibonacci.cpp
index 58c0dcd..c3431fc 100644
--- a/llvm/examples/Fibonacci/fibonacci.cpp
+++ b/llvm/examples/Fibonacci/fibonacci.cpp
@@ -94,7 +94,7 @@ int main(int argc, char **argv) {
LLVMContext Context;
// Create some module to put our function into it.
- Module *M = new Module("test", &Context);
+ Module *M = new Module("test", Context);
// We are about to create the "fib" function:
Function *FibF = CreateFibFunction(M);