Hold the LLVMContext by reference rather than by pointer.
[oota-llvm.git] / examples / Fibonacci / fibonacci.cpp
index 58c0dcdaf5cae229f23c0901456fe5a27827751a..c3431fc3527e0340c283c2da807779f9f3b2472d 100644 (file)
@@ -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);