[lld] r272924 - Simplify. NFC.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 16 10:18:26 PDT 2016
Author: ruiu
Date: Thu Jun 16 12:18:25 2016
New Revision: 272924
URL: http://llvm.org/viewvc/llvm-project?rev=272924&view=rev
Log:
Simplify. NFC.
Modified:
lld/trunk/ELF/Target.cpp
Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=272924&r1=272923&r2=272924&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Thu Jun 16 12:18:25 2016
@@ -1901,7 +1901,7 @@ uint64_t MipsTargetInfo<ELFT>::getImplic
// FIXME (simon): If the relocation target symbol is not a PLT entry
// we should use another expression for calculation:
// ((A << 2) | (P & 0xf0000000)) >> 2
- return SignExtend64<28>((read32<E>(Buf) & 0x3ffffff) << 2);
+ return SignExtend64<28>(read32<E>(Buf) << 2);
case R_MIPS_GPREL16:
case R_MIPS_LO16:
case R_MIPS_PCLO16:
More information about the llvm-commits
mailing list