From a4c15c13390e8f3eade38a348df9239ed4db0688 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 5 Jul 2017 23:16:38 +0000 Subject: [PATCH] Remove dummy cast. llvm-svn: 307220 --- lld/ELF/Writer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index da42fb72a4d6..df883ef98ba4 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -908,9 +908,8 @@ static void sortBySymbolsOrder(ArrayRef OutputSections) { } // Sort sections by priority. - for (OutputSection *Base : OutputSections) - if (auto *Sec = dyn_cast(Base)) - Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); }); + for (OutputSection *Sec : OutputSections) + Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); }); } template