summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-03-01 14:21:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-03-01 14:21:31 +0000
commitbedccb5e78001a3af76ae3941917206c5f1c5a5e (patch)
tree68d4750b0fa672e1dec82f03d9fd09bd86e21759
parentbd12e2a0ce31b385d1147b319b3fa092e6bb9bb1 (diff)
downloadbcm5719-llvm-bedccb5e78001a3af76ae3941917206c5f1c5a5e.tar.gz
bcm5719-llvm-bedccb5e78001a3af76ae3941917206c5f1c5a5e.zip
Simplify. NFC.
llvm-svn: 296620
-rw-r--r--lld/ELF/LinkerScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index a73bfe700f5..2da59e850b8 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -495,7 +495,7 @@ template <class ELFT> void LinkerScript<ELFT>::process(BaseCommand &Base) {
if (!IB->Live)
continue;
- switchTo(IB->OutSec);
+ assert(CurOutSec == IB->OutSec || AlreadyOutputOS.count(IB->OutSec));
output(cast<InputSection>(IB));
}
}
OpenPOWER on IntegriCloud