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:
parent
dc2f2451d3
commit
edbe6b43ea
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user