diff options
author | Rui Ueyama <ruiu@google.com> | 2018-06-13 19:58:33 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-06-13 19:58:33 +0000 |
commit | 1ebde333e84b699becb94b916e66c97b059f502a (patch) | |
tree | 3b180f3f91b7e78336f018a2ef5cdd50fc3a4ce4 | |
parent | 3cc4a0825b0eb7b757290cf3aaaf13d01d8941ea (diff) | |
download | llvm-1ebde333e84b699becb94b916e66c97b059f502a.zip llvm-1ebde333e84b699becb94b916e66c97b059f502a.tar.gz llvm-1ebde333e84b699becb94b916e66c97b059f502a.tar.bz2 |
Remove needless bitwise-AND.
Because applyMask ignores upper bits, we don't need to mask them.
llvm-svn: 334647
-rw-r--r-- | lld/ELF/Arch/Hexagon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Arch/Hexagon.cpp b/lld/ELF/Arch/Hexagon.cpp index 96b516c..40746f2 100644 --- a/lld/ELF/Arch/Hexagon.cpp +++ b/lld/ELF/Arch/Hexagon.cpp @@ -67,7 +67,7 @@ void Hexagon::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { case R_HEX_NONE: break; case R_HEX_B22_PCREL: - or32le(Loc, applyMask(0x01ff3ffe, ((Val >> 2) & 0x3fffff))); + or32le(Loc, applyMask(0x1ff3ffe, Val >> 2)); break; default: error(getErrorLocation(Loc) + "unrecognized reloc " + toString(Type)); |