Changes in directory llvm/tools/lto:

lto.cpp updated: 1.29 -> 1.30
---
Log message:

Modules are consumed when they are merged together by Linker.
Clear modules vector so that destructure does not try to
delete these modules again. Patch by Chandler Carruth.


---
Diffs of the changes:  (+2 -0)

 lto.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/tools/lto/lto.cpp
diff -u llvm/tools/lto/lto.cpp:1.29 llvm/tools/lto/lto.cpp:1.30
--- llvm/tools/lto/lto.cpp:1.29 Mon Jan  8 00:25:29 2007
+++ llvm/tools/lto/lto.cpp      Mon Jan  8 12:42:27 2007
@@ -353,6 +353,8 @@
   for (unsigned i = 1, e = modules.size(); i != e; ++i)
     if (theLinker.LinkModules(bigOne, modules[i], errMsg))
       return LTO_MODULE_MERGE_FAILURE;
+  //  all modules have been handed off to the linker.
+  modules.clear();
 
   sys::Path FinalOutputPath(FinalOutputFilename);
   FinalOutputPath.eraseSuffix();



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to