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