diff --git a/src/r_compiler/llvmdrawers.cpp b/src/r_compiler/llvmdrawers.cpp index dea72a1acf..82cac4a184 100644 --- a/src/r_compiler/llvmdrawers.cpp +++ b/src/r_compiler/llvmdrawers.cpp @@ -644,7 +644,11 @@ bool LLVMProgram::LoadCachedModule(int version, std::string targetCPU) if (!result) return false; +#if LLVM_VERSION_MAJOR < 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR < 8) + mModule.reset(result.get()); +#else mModule = std::move(result.get()); +#endif return true; }