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

View File

@ -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>