Fix ISPC after LLVM r255842

This commit is contained in:
Anton Mitrokhin
2015-12-21 14:59:14 +03:00
parent ac8fef0f22
commit a6f0aade5c

View File

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