projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Hold the LLVMContext by reference rather than by pointer.
[oota-llvm.git]
/
examples
/
Fibonacci
/
fibonacci.cpp
diff --git
a/examples/Fibonacci/fibonacci.cpp
b/examples/Fibonacci/fibonacci.cpp
index 58c0dcdaf5cae229f23c0901456fe5a27827751a..c3431fc3527e0340c283c2da807779f9f3b2472d 100644
(file)
--- a/
examples/Fibonacci/fibonacci.cpp
+++ b/
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);