Merge pull request #1138 from ncos/trunk-fixing
Fix ISPC after LLVM r255842. Fix for build problem, though there's runtime problem still.
This commit is contained in:
@@ -901,7 +901,8 @@ AddBitcodeToModule(const unsigned char *bitcode, int length,
|
||||
llvm::Linker::LinkModules(module, bcModule);
|
||||
#else // LLVM 3.8+
|
||||
// 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
|
||||
|
||||
lSetInternalFunctions(module);
|
||||
|
||||
Reference in New Issue
Block a user