Skip to content

Commit 271740c

Browse files
[NFC] Fix "shift implicitly converted" warning introduced by #154761 (#158619)
1 parent c723cc2 commit 271740c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ bool AArch64DAGToDAGISel::SelectRDSVLShiftImm(SDValue N, SDValue &Imm) {
947947
if (!isa<ConstantSDNode>(N))
948948
return false;
949949

950-
int64_t MulImm = 1 << cast<ConstantSDNode>(N)->getSExtValue();
950+
int64_t MulImm = 1LL << cast<ConstantSDNode>(N)->getSExtValue();
951951
if (MulImm >= Low && MulImm <= High) {
952952
Imm = CurDAG->getSignedTargetConstant(MulImm, SDLoc(N), MVT::i32);
953953
return true;

0 commit comments

Comments
 (0)