1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

Fix MSVC "32-bit shift implicitly converted to 64 bits" warning.

This commit is contained in:
Simon Pilgrim 2021-06-30 11:36:06 +01:00
parent dc2f2451d3
commit edbe6b43ea

View File

@ -1920,7 +1920,7 @@ HexagonTargetLowering::validateConstPtrAlignment(SDValue Ptr, Align NeedAlign,
return;
unsigned Addr = CA->getZExtValue();
Align HaveAlign =
Addr != 0 ? Align(1u << countTrailingZeros(Addr)) : NeedAlign;
Addr != 0 ? Align(1ull << countTrailingZeros(Addr)) : NeedAlign;
if (HaveAlign < NeedAlign) {
std::string ErrMsg;
raw_string_ostream O(ErrMsg);