Remove dummy cast.

llvm-svn: 307220
This commit is contained in:
Rafael Espindola 2017-07-05 23:16:38 +00:00
parent 4cc0cd6556
commit a4c15c1339
1 changed files with 2 additions and 3 deletions

View File

@ -908,9 +908,8 @@ static void sortBySymbolsOrder(ArrayRef<OutputSection *> OutputSections) {
} }
// Sort sections by priority. // Sort sections by priority.
for (OutputSection *Base : OutputSections) for (OutputSection *Sec : OutputSections)
if (auto *Sec = dyn_cast<OutputSection>(Base)) Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); });
Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); });
} }
template <class ELFT> template <class ELFT>