mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 03:37:26 +03:00
Merge pull request #1025 from elly/master
Update LinkModules invocation to use new prototype
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user