diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-07-17 19:55:22 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-07-17 19:55:22 +0000 |
| commit | 25a6d57b9c38e40e0397842fcea01d86a1c7edf4 (patch) | |
| tree | c1778f8d9540f9267e4c040eb12c05417bf433fc | |
| parent | a662e0f73863345cb4aae25b21b2e7ae5cbb135d (diff) | |
| download | bcm5719-llvm-25a6d57b9c38e40e0397842fcea01d86a1c7edf4.tar.gz bcm5719-llvm-25a6d57b9c38e40e0397842fcea01d86a1c7edf4.zip | |
Unbreak msan buildbot.
llvm-svn: 275728
| -rw-r--r-- | lld/ELF/Writer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 387bec3d8fb..60152fed0a9 100644 --- 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. |

