diff options
author | Zaara Syeda <syzaara@ca.ibm.com> | 2018-04-30 14:37:28 +0000 |
---|---|---|
committer | Zaara Syeda <syzaara@ca.ibm.com> | 2018-04-30 14:37:28 +0000 |
commit | 22008c66058a911857c0ab0618a52ce944ad37b7 (patch) | |
tree | 496261cddb9ef9b4ae405ab02324171d6c55d65e /lld/ELF/InputSection.cpp | |
parent | 732665fc0ef5b55eaae77b27a4074fee04f307b6 (diff) |
Fix warning: result of 32-bit shift implicitly converted to 64 bits - NFC
Fix warning caused by rL331046.
Differential Revision: https://reviews.llvm.org/D45729
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r-- | lld/ELF/InputSection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 9612c29cebf..77a50b6579d 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -595,7 +595,7 @@ static uint64_t getRelocTargetVA(RelType Type, int64_t A, uint64_t P, if (StOther == 0 || StOther == 1) return SymVA - P; - return SymVA - P + (1 << StOther); + return SymVA - P + (1LL << StOther); } case R_PPC_TOC: return getPPC64TocBase() + A; |