[llvm] [NFC] Fix "shift implicitly converted" warning introduced by #154761 (PR #158619)
Kerry McLaughlin via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 15 05:13:27 PDT 2025
https://github.com/kmclaughlin-arm created https://github.com/llvm/llvm-project/pull/158619
None
>From 0af42decaa1d34c79b785d8461ba57f172dd6a71 Mon Sep 17 00:00:00 2001
From: Kerry McLaughlin <kerry.mclaughlin at arm.com>
Date: Mon, 15 Sep 2025 10:57:00 +0000
Subject: [PATCH] [NFC] Fix "shift implicitly converted" warning introduced by
#154761
---
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
index 235dbc41c4bef..54bdb8750f709 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -947,7 +947,7 @@ bool AArch64DAGToDAGISel::SelectRDSVLShiftImm(SDValue N, SDValue &Imm) {
if (!isa<ConstantSDNode>(N))
return false;
- int64_t MulImm = 1 << cast<ConstantSDNode>(N)->getSExtValue();
+ int64_t MulImm = 1LL << cast<ConstantSDNode>(N)->getSExtValue();
if (MulImm >= Low && MulImm <= High) {
Imm = CurDAG->getSignedTargetConstant(MulImm, SDLoc(N), MVT::i32);
return true;
More information about the llvm-commits
mailing list