diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2015-12-15 06:06:34 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2015-12-15 06:06:34 +0000 |
| commit | 350311974b6b67fc5832f6984fb711d8263e0703 (patch) | |
| tree | 2a38cbc8c4a49d472ba618172c79477b33e2cb7f | |
| parent | bebca1c496cdd6d3fdd5d3290f831f331e3114b4 (diff) | |
| download | bcm5719-llvm-350311974b6b67fc5832f6984fb711d8263e0703.tar.gz bcm5719-llvm-350311974b6b67fc5832f6984fb711d8263e0703.zip | |
[ELF][MIPS] Remove applying the redundant bit-mask
The `mipsHigh` return type is `uint16_t` so we do not need to extract
low 16-bits from return value explicitly.
llvm-svn: 255622
| -rw-r--r-- | lld/ELF/Target.cpp | 2 |
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, |

