[lld] r307220 - Remove dummy cast.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 16:16:38 PDT 2017
Author: rafael
Date: Wed Jul 5 16:16:38 2017
New Revision: 307220
URL: http://llvm.org/viewvc/llvm-project?rev=307220&view=rev
Log:
Remove dummy cast.
Modified:
lld/trunk/ELF/Writer.cpp
Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=307220&r1=307219&r2=307220&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Jul 5 16:16:38 2017
@@ -908,9 +908,8 @@ static void sortBySymbolsOrder(ArrayRef<
}
// 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>
More information about the llvm-commits
mailing list