# HG changeset patch # User Benjamin Kramer # Date 1248105305 -7200 # Node ID f9660d9cf2ba847a6e0ec0b9ef5e2443c57dc148 # Parent 7fcb72d518f667f31ca4c976d2cdd2120734f170 Temporarily force our LLVMContext to the global context From llvm r75846: "To simplify the upcoming context-on-type change, switch all command line tools to using the default global context for now." diff -r 7fcb72d518f6 -r f9660d9cf2ba gen/main.cpp --- a/gen/main.cpp Wed Jul 15 18:09:41 2009 +0200 +++ b/gen/main.cpp Mon Jul 20 17:55:05 2009 +0200 @@ -402,7 +402,7 @@ if (global.errors) fatal(); - llvm::LLVMContext context; + llvm::LLVMContext& context = llvm::getGlobalContext(); llvm::Module mod("dummy", context); // override triple if needed