Hold the LLVMContext by reference rather than by pointer.
[oota-llvm.git] / examples / ModuleMaker / ModuleMaker.cpp
index 322835e04f20a7a0ec24b9cd2614231d5a7c6dcf..59a86d031d2f3823a73d439e68d0cc79923abdc4 100644 (file)
@@ -27,7 +27,7 @@ int main() {
 
   // Create the "module" or "program" or "translation unit" to hold the
   // function
-  Module *M = new Module("test", &Context);
+  Module *M = new Module("test", Context);
 
   // Create the main function: first create the type 'int ()'
   FunctionType *FT = FunctionType::get(Type::Int32Ty, /*not vararg*/false);