Skip to content

Commit

Permalink
Fix "result of 32-bit shift implicitly converted to 64 bits" warning.…
Browse files Browse the repository at this point in the history
… NFC.
  • Loading branch information
RKSimon committed Dec 21, 2019
1 parent d76202d commit 6945d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
Expand Up @@ -177,7 +177,7 @@ class AArch64DAGToDAGISel : public SelectionDAGISel {

int64_t MulImm = cast<ConstantSDNode>(N)->getSExtValue();
if (Shift)
MulImm = 1 << MulImm;
MulImm = 1LL << MulImm;

if ((MulImm % std::abs(Scale)) != 0)
return false;
Expand Down

0 comments on commit 6945d38

Please sign in to comment.