| commit | a156555b5e566a0682565243f87d6c9822b96ca3 | [log] [tgz] |
|---|---|---|
| author | Rafael Espindola <rafael.espindola@gmail.com> | Wed Mar 15 12:31:54 2017 +0000 |
| committer | Rafael Espindola <rafael.espindola@gmail.com> | Wed Mar 15 12:31:54 2017 +0000 |
| tree | aa86d7a0aefc9146683ec6e3b1b3eb644d49c086 | |
| parent | fd89ed8ed2e0831258a9dbd2db916066d3eab839 [diff] [blame] |
simplify. NFC llvm-svn: 297829
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index d59a79e..ccf267f 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp
@@ -202,10 +202,7 @@ 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);