about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLindsey Kuper <lindsey@rockstargirl.org>2011-10-11 18:53:01 -0700
committerLindsey Kuper <lindsey@rockstargirl.org>2011-10-11 18:53:01 -0700
commite12e76e9ba0785d556a6ea3ca71e4a467e2aeb4d (patch)
treea8eb0cb752d6765efd7a4a5eb99118ba6c67fd81
parentf480203fdd4d8b498453c1f7cc0ad4f59d87c596 (diff)
parent19eae0bc3849e553aabf0f61cc2070236c2fffe7 (diff)
downloadrust-e12e76e9ba0785d556a6ea3ca71e4a467e2aeb4d.tar.gz
rust-e12e76e9ba0785d556a6ea3ca71e4a467e2aeb4d.zip
Merge pull request #1025 from elly/master
Update LinkModules invocation to use new prototype
-rw-r--r--src/rustllvm/RustWrapper.cpp2
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;
   }