[lld] r256189 - Remove unnecessary cast.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 21 12:18:05 PST 2015
Author: rafael
Date: Mon Dec 21 14:18:04 2015
New Revision: 256189
URL: http://llvm.org/viewvc/llvm-project?rev=256189&view=rev
Log:
Remove unnecessary cast.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=256189&r1=256188&r2=256189&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Dec 21 14:18:04 2015
@@ -305,7 +305,7 @@ template <class ELFT> void RelocationSec
else if (CanBePreempted || IsDynRelative)
Addend = OrigAddend;
else if (Body)
- Addend = getSymVA<ELFT>(cast<ELFSymbolBody<ELFT>>(*Body)) + OrigAddend;
+ Addend = getSymVA<ELFT>(*Body) + OrigAddend;
else if (IsRela)
Addend =
getLocalRelTarget(File, static_cast<const Elf_Rela &>(RI),
More information about the llvm-commits
mailing list