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 | 116c0424da83d29903b1bd76a01e1c7230a1f74f (patch) | |
tree | 1d5002aebd41c7f50c7ae445aa589920553e0b5e | |
parent | d2f36c864e8223a29534941e6fac2b9519658d9c (diff) | |
download | bcm5719-llvm-116c0424da83d29903b1bd76a01e1c7230a1f74f.tar.gz bcm5719-llvm-116c0424da83d29903b1bd76a01e1c7230a1f74f.zip |
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
llvm-svn: 331181
-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; |