summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2017-03-31 12:31:23 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2017-03-31 12:31:23 +0000
commit50c374f37aba47c8a818a221efb1d06a426deb87 (patch)
tree981e25dde1f94f2eb86273beabcf46fc00e3bd1d
parent80745c52bc13ea9ec5801c35da66c6e48dbd68b0 (diff)
downloadbcm5719-llvm-50c374f37aba47c8a818a221efb1d06a426deb87.tar.gz
bcm5719-llvm-50c374f37aba47c8a818a221efb1d06a426deb87.zip
Remove unnecessary cast and branch. NFC.
llvm-svn: 299208
-rw-r--r--lld/ELF/Relocations.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 51b2cafa987..39cdc6f05f5 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -1003,11 +1003,7 @@ bool elf::createThunks(ArrayRef<OutputSection *> OutputSections) {
// We separate the creation of ThunkSections from the insertion of the
// ThunkSections back into the OutputSection as ThunkSections are not always
// inserted into the same OutputSection as the caller.
- for (OutputSection *Base : OutputSections) {
- auto *OS = dyn_cast<OutputSection>(Base);
- if (OS == nullptr)
- continue;
-
+ for (OutputSection *OS : OutputSections) {
ThunkSection *OSTS = nullptr;
for (InputSection *IS : OS->Sections) {
for (Relocation &Rel : IS->Relocations) {
OpenPOWER on IntegriCloud