1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

Fix "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.

This commit is contained in:
Simon Pilgrim 2019-12-21 17:45:30 +00:00
parent 94093a9d23
commit 64e7c37e84

View File

@ -177,7 +177,7 @@ public:
int64_t MulImm = cast<ConstantSDNode>(N)->getSExtValue();
if (Shift)
MulImm = 1 << MulImm;
MulImm = 1LL << MulImm;
if ((MulImm % std::abs(Scale)) != 0)
return false;