[llvm] r255156 - [ThinLTO] Release files read when creating combined index in gold plugin

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 9 13:11:42 PST 2015


Author: tejohnson
Date: Wed Dec  9 15:11:42 2015
New Revision: 255156

URL: http://llvm.org/viewvc/llvm-project?rev=255156&view=rev
Log:
[ThinLTO] Release files read when creating combined index in gold plugin

This wasn't causing an issue since at HEAD we exit the linker completely
after creating the combined index.

Modified:
    llvm/trunk/tools/gold/gold-plugin.cpp

Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=255156&r1=255155&r2=255156&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Wed Dec  9 15:11:42 2015
@@ -919,6 +919,9 @@ static ld_plugin_status allSymbolsReadHo
         continue;
 
       CombinedIndex.mergeFrom(std::move(Index), ++NextModuleId);
+
+      if (release_input_file(F.handle) != LDPS_OK)
+        message(LDPL_FATAL, "Failed to release file information");
     }
 
     std::error_code EC;




More information about the llvm-commits mailing list