diff options
-rw-r--r-- | mono/mini/mini-llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/mini/mini-llvm.c b/mono/mini/mini-llvm.c index a21c10fd782..b83c823acfb 100644 --- a/mono/mini/mini-llvm.c +++ b/mono/mini/mini-llvm.c @@ -8366,7 +8366,7 @@ mono_llvm_create_aot_module (MonoAssembly *assembly, const char *global_prefix, module->llvm_only = llvm_only; /* The first few entries are reserved */ module->max_got_offset = 16; - module->context = LLVMContextCreate (); + module->context = LLVMGetGlobalContext (); if (llvm_only) /* clang ignores our debug info because it has an invalid version */ |