mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-16 20:41:44 +00:00
Remove dummy cast.
llvm-svn: 307220
This commit is contained in:
parent
4cc0cd6556
commit
a4c15c1339
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user