From 69171c07cddaabddbbf237d06982cb50dfbe70f1 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 20 Jul 2009 17:55:05 +0200 Subject: [PATCH] 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." --- gen/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/main.cpp b/gen/main.cpp index 7420613c..115af784 100644 --- a/gen/main.cpp +++ b/gen/main.cpp @@ -402,7 +402,7 @@ int main(int argc, char** argv) if (global.errors) fatal(); - llvm::LLVMContext context; + llvm::LLVMContext& context = llvm::getGlobalContext(); llvm::Module mod("dummy", context); // override triple if needed