simplify. NFC

llvm-svn: 297829
This commit is contained in:
Rafael Espindola 2017-03-15 12:31:54 +00:00
parent fd89ed8ed2
commit a156555b5e
1 changed files with 1 additions and 4 deletions

View File

@ -202,10 +202,7 @@ template <class ELFT> static void combineMergableSections() {
template <class ELFT> static void combineEhFrameSections() {
for (InputSectionBase *&S : InputSections) {
EhInputSection *ES = dyn_cast<EhInputSection>(S);
if (!ES)
continue;
if (!ES->Live)
if (!ES || !ES->Live)
continue;
In<ELFT>::EhFrame->addSection(ES);