Unbreak msan buildbot.
authorRui Ueyama <ruiu@google.com>
Sun, 17 Jul 2016 19:55:22 +0000 (19:55 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 17 Jul 2016 19:55:22 +0000 (19:55 +0000)
llvm-svn: 275728

lld/ELF/Writer.cpp

index 387bec3..60152fe 100644 (file)
@@ -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.