Skip to content

Commit 19eae0b

Browse files
author
Elly Jones
committed
Update LinkModules invocation to use new prototype
LLVM revision 141606 changes the prototype of llvm::Linker::LinkModules. Signed-off-by: Elly Jones <[email protected]>
1 parent f480203 commit 19eae0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustllvm/RustWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ extern "C" bool LLVMLinkModules(LLVMModuleRef Dest, LLVMModuleRef Src) {
5353
// function" error.
5454
Module *DM = reinterpret_cast<Module *>(Dest);
5555
Module *SM = reinterpret_cast<Module *>(Src);
56-
if (Linker::LinkModules(DM, SM, &err)) {
56+
if (Linker::LinkModules(DM, SM, Linker::DestroySource, &err)) {
5757
LLVMRustError = err.c_str();
5858
return false;
5959
}

0 commit comments

Comments
 (0)