Skip to content

Commit 0d43e90

Browse files
committed
Revert "Merge pull request #1025 from elly/master"
This reverts commit e12e76e, reversing changes made to f480203.
1 parent 813c2eb commit 0d43e90

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, Linker::DestroySource, &err)) {
56+
if (Linker::LinkModules(DM, SM, &err)) {
5757
LLVMRustError = err.c_str();
5858
return false;
5959
}

0 commit comments

Comments
 (0)