Simplify. NFC.

llvm-svn: 296620
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index a73bfe7..2da59e8 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -495,7 +495,7 @@
 
     if (!IB->Live)
       continue;
-    switchTo(IB->OutSec);
+    assert(CurOutSec == IB->OutSec || AlreadyOutputOS.count(IB->OutSec));
     output(cast<InputSection>(IB));
   }
 }