[llvm] 271740c - [NFC] Fix "shift implicitly converted" warning introduced by #154761 (#158619)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 15 07:25:05 PDT 2025


Author: Kerry McLaughlin
Date: 2025-09-15T15:25:01+01:00
New Revision: 271740c8baa08ad2451111f9d49d7cc3db92d199

URL: https://github.com/llvm/llvm-project/commit/271740c8baa08ad2451111f9d49d7cc3db92d199
DIFF: https://github.com/llvm/llvm-project/commit/271740c8baa08ad2451111f9d49d7cc3db92d199.diff

LOG: [NFC] Fix "shift implicitly converted" warning introduced by #154761 (#158619)

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Removed: 
    


################################################################################
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