Skip to content

Commit

Permalink
Merge pull request rust-lang#1025 from elly/master
Browse files Browse the repository at this point in the history
Update LinkModules invocation to use new prototype
  • Loading branch information
lkuper committed Oct 12, 2011
2 parents f480203 + 19eae0b commit e12e76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rustllvm/RustWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ extern "C" bool LLVMLinkModules(LLVMModuleRef Dest, LLVMModuleRef Src) {
// function" error.
Module *DM = reinterpret_cast<Module *>(Dest);
Module *SM = reinterpret_cast<Module *>(Src);
if (Linker::LinkModules(DM, SM, &err)) {
if (Linker::LinkModules(DM, SM, Linker::DestroySource, &err)) {
LLVMRustError = err.c_str();
return false;
}
Expand Down

0 comments on commit e12e76e

Please sign in to comment.