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:
a662e0f
)
Unbreak msan buildbot.
author
Rui Ueyama
<ruiu@google.com>
Sun, 17 Jul 2016 19:55:22 +0000
(19:55 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Sun, 17 Jul 2016 19:55:22 +0000
(19:55 +0000)
llvm-svn: 275728
lld/ELF/Writer.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Writer.cpp
b/lld/ELF/Writer.cpp
index
387bec3
..
60152fe
100644
(file)
--- a/
lld/ELF/Writer.cpp
+++ b/
lld/ELF/Writer.cpp
@@
-698,6
+698,8
@@
template <class ELFT> void Writer<ELFT>::createSections() {
std::vector<DefinedCommon *> CommonSymbols;
for (Symbol *S : Symtab.getSymbols()) {
SymbolBody *Body = S->body();
+ if (Body->kind() == SymbolBody::PlaceholderKind)
+ continue;
// We only report undefined symbols in regular objects. This means that we
// will accept an undefined reference in bitcode if it can be optimized out.