diff options
Diffstat (limited to 'backend/src/llvm/llvm_to_gen.cpp')
-rw-r--r-- | backend/src/llvm/llvm_to_gen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/src/llvm/llvm_to_gen.cpp b/backend/src/llvm/llvm_to_gen.cpp index 3527491e..beb36c01 100644 --- a/backend/src/llvm/llvm_to_gen.cpp +++ b/backend/src/llvm/llvm_to_gen.cpp @@ -186,7 +186,8 @@ namespace gbe // Get the module from its file llvm::SMDiagnostic Err; - std::auto_ptr<Module> M; + std::unique_ptr<Module> M; + if(fileName){ // only when module is null, Get the global LLVM context llvm::LLVMContext& c = llvm::getGlobalContext(); |