[lld] r248270 - Remove unnecessary parenthesis.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 06:30:26 PDT 2015
Author: rafael
Date: Tue Sep 22 08:30:26 2015
New Revision: 248270
URL: http://llvm.org/viewvc/llvm-project?rev=248270&view=rev
Log:
Remove unnecessary parenthesis.
Modified:
lld/trunk/ELF/InputSection.cpp
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=248270&r1=248269&r2=248270&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Tue Sep 22 08:30:26 2015
@@ -50,7 +50,7 @@ void InputSection<ELFT>::relocateOne(uin
switch (Type) {
case R_X86_64_PC32:
support::endian::write32le(Location,
- SymVA + (Rel.r_addend - (BaseAddr + Offset)));
+ SymVA + Rel.r_addend - (BaseAddr + Offset));
break;
case R_X86_64_64:
support::endian::write64le(Location, SymVA + Rel.r_addend);
More information about the llvm-commits
mailing list