summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Target.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Target.cpp b/lld/ELF/Target.cpp
index 2825f02fa21..3a8b7da7f54 100644
--- a/lld/ELF/Target.cpp
+++ b/lld/ELF/Target.cpp
@@ -1287,7 +1287,7 @@ bool MipsTargetInfo<ELFT>::relocNeedsPlt(uint32_t Type,
return false;
}
-static uint16_t mipsHigh(uint64_t V) { return ((V + 0x8000) >> 16) & 0xffff; }
+static uint16_t mipsHigh(uint64_t V) { return (V + 0x8000) >> 16; }
template <class ELFT>
void MipsTargetInfo<ELFT>::relocateOne(uint8_t *Loc, uint8_t *BufEnd,
OpenPOWER on IntegriCloud