[lld] r296620 - Simplify. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 1 06:21:31 PST 2017


Author: rafael
Date: Wed Mar  1 08:21:31 2017
New Revision: 296620

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

Modified:
    lld/trunk/ELF/LinkerScript.cpp

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=296620&r1=296619&r2=296620&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Wed Mar  1 08:21:31 2017
@@ -495,7 +495,7 @@ template <class ELFT> void LinkerScript<
 
     if (!IB->Live)
       continue;
-    switchTo(IB->OutSec);
+    assert(CurOutSec == IB->OutSec || AlreadyOutputOS.count(IB->OutSec));
     output(cast<InputSection>(IB));
   }
 }




More information about the llvm-commits mailing list