From a6f0aade5c516750e17dd6f5f61d5447ce482719 Mon Sep 17 00:00:00 2001 From: Anton Mitrokhin Date: Mon, 21 Dec 2015 14:59:14 +0300 Subject: [PATCH] Fix ISPC after LLVM r255842 --- builtins.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtins.cpp b/builtins.cpp index 71cb6040..3fd0910f 100644 --- a/builtins.cpp +++ b/builtins.cpp @@ -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 M(bcModule); + llvm::Linker::linkModules(*module, std::move(M)); #endif lSetInternalFunctions(module);