diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-05 23:16:38 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-05 23:16:38 +0000 |
| commit | a4c15c13390e8f3eade38a348df9239ed4db0688 (patch) | |
| tree | ea00c05f34565a4700e055b7f8c9c1306c873b26 | |
| parent | 4cc0cd6556c28363b4239ced430700eefacb291e (diff) | |
| download | bcm5719-llvm-a4c15c13390e8f3eade38a348df9239ed4db0688.tar.gz bcm5719-llvm-a4c15c13390e8f3eade38a348df9239ed4db0688.zip | |
Remove dummy cast.
llvm-svn: 307220
| -rw-r--r-- | lld/ELF/Writer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index da42fb72a4d..df883ef98ba 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -908,9 +908,8 @@ static void sortBySymbolsOrder(ArrayRef<OutputSection *> OutputSections) { } // Sort sections by priority. - for (OutputSection *Base : OutputSections) - if (auto *Sec = dyn_cast<OutputSection>(Base)) - Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); }); + for (OutputSection *Sec : OutputSections) + Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); }); } template <class ELFT> |

