diff options
| author | James Henderson <jh7370@my.bristol.ac.uk> | 2017-03-31 12:31:23 +0000 |
|---|---|---|
| committer | James Henderson <jh7370@my.bristol.ac.uk> | 2017-03-31 12:31:23 +0000 |
| commit | 50c374f37aba47c8a818a221efb1d06a426deb87 (patch) | |
| tree | 981e25dde1f94f2eb86273beabcf46fc00e3bd1d | |
| parent | 80745c52bc13ea9ec5801c35da66c6e48dbd68b0 (diff) | |
| download | bcm5719-llvm-50c374f37aba47c8a818a221efb1d06a426deb87.tar.gz bcm5719-llvm-50c374f37aba47c8a818a221efb1d06a426deb87.zip | |
Remove unnecessary cast and branch. NFC.
llvm-svn: 299208
| -rw-r--r-- | lld/ELF/Relocations.cpp | 6 |
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) { |

