[llvm] [NFC] Fix "shift implicitly converted" warning introduced by #154761 (PR #158619)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 15 05:14:04 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-aarch64
Author: Kerry McLaughlin (kmclaughlin-arm)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/158619.diff
1 Files Affected:
- (modified) llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp (+1-1)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/158619
More information about the llvm-commits
mailing list