From: Teresa Johnson Date: Wed, 9 Dec 2015 21:11:42 +0000 (+0000) Subject: [ThinLTO] Release files read when creating combined index in gold plugin X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=e8315919f02c3e94bf701c86180b8da723cafcb7 [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255156 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 08ff45d45eb..9f8b0b20f61 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -919,6 +919,9 @@ static ld_plugin_status allSymbolsReadHook(raw_fd_ostream *ApiFile) { 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;