[lld] r297829 - simplify. NFC

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 05:31:55 PDT 2017


Author: rafael
Date: Wed Mar 15 07:31:54 2017
New Revision: 297829

URL: http://llvm.org/viewvc/llvm-project?rev=297829&view=rev
Log:
simplify. NFC

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=297829&r1=297828&r2=297829&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Mar 15 07:31:54 2017
@@ -202,10 +202,7 @@ template <class ELFT> static void combin
 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);




More information about the llvm-commits mailing list