projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54ade23
)
[ThinLTO] Release files read when creating combined index in gold plugin
author
Teresa Johnson
<tejohnson@google.com>
Wed, 9 Dec 2015 21:11:42 +0000
(21:11 +0000)
committer
Teresa Johnson
<tejohnson@google.com>
Wed, 9 Dec 2015 21:11:42 +0000
(21:11 +0000)
This wasn't causing an issue since at HEAD we exit the linker completely
after creating the combined index.
llvm-svn: 255156
llvm/tools/gold/gold-plugin.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/gold/gold-plugin.cpp
b/llvm/tools/gold/gold-plugin.cpp
index
08ff45d
..
9f8b0b2
100644
(file)
--- a/
llvm/tools/gold/gold-plugin.cpp
+++ b/
llvm/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;