mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 22:33:17 +00:00
Compile fix for older versions of LLVM
This commit is contained in:
parent
dadee080e4
commit
29005b5ce6
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue