From 0234640882a53a4674d1f5bfaaa32ac3f101b516 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 21 Dec 2015 20:18:04 +0000 Subject: [PATCH] Remove unnecessary cast. llvm-svn: 256189 --- lld/ELF/OutputSections.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index cad46db38ab2..a55315e096c5 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -305,7 +305,7 @@ template void RelocationSection::writeTo(uint8_t *Buf) { else if (CanBePreempted || IsDynRelative) Addend = OrigAddend; else if (Body) - Addend = getSymVA(cast>(*Body)) + OrigAddend; + Addend = getSymVA(*Body) + OrigAddend; else if (IsRela) Addend = getLocalRelTarget(File, static_cast(RI),