[lld] r268852 - [ELF][MIPS] Remove redundant local variable. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Sat May 7 00:36:48 PDT 2016
Author: atanasyan
Date: Sat May 7 02:36:47 2016
New Revision: 268852
URL: http://llvm.org/viewvc/llvm-project?rev=268852&view=rev
Log:
[ELF][MIPS] Remove redundant local variable. 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=268852&r1=268851&r2=268852&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Sat May 7 02:36:47 2016
@@ -1459,11 +1459,9 @@ void MipsTargetInfo<ELFT>::relocateOne(u
case R_MIPS_64:
write64<E>(Loc, Val);
break;
- case R_MIPS_26: {
- uint32_t Instr = read32<E>(Loc);
- write32<E>(Loc, (Instr & ~0x3ffffff) | (Val >> 2));
+ case R_MIPS_26:
+ write32<E>(Loc, (read32<E>(Loc) & ~0x3ffffff) | (Val >> 2));
break;
- }
case R_MIPS_GOT_DISP:
case R_MIPS_GOT_PAGE:
case R_MIPS_GOT16:
More information about the llvm-commits
mailing list