Fix ISPC after LLVM r255842
This commit is contained in:
@@ -901,7 +901,8 @@ AddBitcodeToModule(const unsigned char *bitcode, int length,
|
|||||||
llvm::Linker::LinkModules(module, bcModule);
|
llvm::Linker::LinkModules(module, bcModule);
|
||||||
#else // LLVM 3.8+
|
#else // LLVM 3.8+
|
||||||
// TODO: Pass diagnostic function for proper error reporting.
|
// TODO: Pass diagnostic function for proper error reporting.
|
||||||
llvm::Linker::linkModules(*module, *bcModule, nullptr);
|
std::unique_ptr<llvm::Module> M(bcModule);
|
||||||
|
llvm::Linker::linkModules(*module, std::move(M));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
lSetInternalFunctions(module);
|
lSetInternalFunctions(module);
|
||||||
|
|||||||
Reference in New Issue
Block a user