Compile fix for older versions of LLVM

This commit is contained in:
Magnus Norddahl 2016-11-21 01:40:08 +01:00
parent dadee080e4
commit 29005b5ce6

View file

@ -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;
}