diff options
| author | Elly Jones <elly@leptoquark.net> | 2011-10-11 21:32:34 -0400 |
|---|---|---|
| committer | Elly Jones <elly@leptoquark.net> | 2011-10-11 21:32:34 -0400 |
| commit | 19eae0bc3849e553aabf0f61cc2070236c2fffe7 (patch) | |
| tree | a8eb0cb752d6765efd7a4a5eb99118ba6c67fd81 /src/rustllvm/RustWrapper.cpp | |
| parent | f480203fdd4d8b498453c1f7cc0ad4f59d87c596 (diff) | |
| download | rust-19eae0bc3849e553aabf0f61cc2070236c2fffe7.tar.gz rust-19eae0bc3849e553aabf0f61cc2070236c2fffe7.zip | |
Update LinkModules invocation to use new prototype
LLVM revision 141606 changes the prototype of llvm::Linker::LinkModules. Signed-off-by: Elly Jones <elly@leptoquark.net>
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index 624b5854b5f..3031ce6685a 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -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; } |
