Skip to content

Commit e12e76e

Browse files
committed
Merge pull request rust-lang#1025 from elly/master
Update LinkModules invocation to use new prototype
2 parents f480203 + 19eae0b commit e12e76e

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)