Fix style.

llvm-svn: 250457
This commit is contained in:
Rui Ueyama 2015-10-15 20:55:20 +00:00
parent 142947e9f0
commit 96b190428e
1 changed files with 1 additions and 2 deletions

View File

@ -455,10 +455,9 @@ template <class ELFT> void Writer<ELFT>::createSections() {
for (auto &P : Symtab.getSymbols()) {
StringRef Name = P.first;
SymbolBody *Body = P.second->Body;
if (auto *U = dyn_cast<Undefined<ELFT>>(Body)) {
if (auto *U = dyn_cast<Undefined<ELFT>>(Body))
if (!U->isWeak() && !U->canKeepUndefined())
reportUndefined<ELFT>(Symtab, *Body);
}
if (auto *C = dyn_cast<DefinedCommon<ELFT>>(Body))
CommonSymbols.push_back(C);