[lld] r256196 - Remove unnecessary cast.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 21 12:50:51 PST 2015
Author: rafael
Date: Mon Dec 21 14:50:51 2015
New Revision: 256196
URL: http://llvm.org/viewvc/llvm-project?rev=256196&view=rev
Log:
Remove unnecessary 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=256196&r1=256195&r2=256196&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Mon Dec 21 14:50:51 2015
@@ -1141,7 +1141,7 @@ template <class ELFT> void Writer<ELFT>:
template <class ELFT>
typename ELFFile<ELFT>::uintX_t Writer<ELFT>::getEntryAddr() const {
if (Config->EntrySym) {
- if (auto *E = dyn_cast<ELFSymbolBody<ELFT>>(Config->EntrySym->repl()))
+ if (SymbolBody *E = Config->EntrySym->repl())
return getSymVA<ELFT>(*E);
return 0;
}
More information about the llvm-commits
mailing list