mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
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."
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user