Simplify. NFC.

llvm-svn: 252716
This commit is contained in:
Rafael Espindola 2015-11-11 09:57:08 +00:00
parent e38d3c8f9f
commit c240e36690
1 changed files with 1 additions and 2 deletions

View File

@ -554,8 +554,7 @@ template <class ELFT> void Writer<ELFT>::createSections() {
for (const std::unique_ptr<ObjectFile<ELFT>> &F : Symtab.getObjectFiles())
for (InputSectionBase<ELFT> *B : F->getSections())
if (auto *S = dyn_cast_or_null<InputSection<ELFT>>(B))
if (S != &InputSection<ELFT>::Discarded)
if (S->isLive())
if (S != &InputSection<ELFT>::Discarded && S->isLive())
scanRelocs(*S);
std::vector<DefinedCommon<ELFT> *> CommonSymbols;