[lld] r331181 - Fix warning: result of 32-bit shift implicitly converted to 64 bits - NFC
Zaara Syeda via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 30 07:37:28 PDT 2018
Author: syzaara
Date: Mon Apr 30 07:37:28 2018
New Revision: 331181
URL: http://llvm.org/viewvc/llvm-project?rev=331181&view=rev
Log:
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
Modified:
lld/trunk/ELF/InputSection.cpp
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=331181&r1=331180&r2=331181&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Mon Apr 30 07:37:28 2018
@@ -595,7 +595,7 @@ static uint64_t getRelocTargetVA(RelType
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;
More information about the llvm-commits
mailing list