[llvm] 7befba8 - Silence conversion warning; NFC (#205357)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 23 08:05:34 PDT 2026
Author: Aaron Ballman
Date: 2026-06-23T15:05:29Z
New Revision: 7befba8a76f3ba54b584cbb4b673d749f34054af
URL: https://github.com/llvm/llvm-project/commit/7befba8a76f3ba54b584cbb4b673d749f34054af
DIFF: https://github.com/llvm/llvm-project/commit/7befba8a76f3ba54b584cbb4b673d749f34054af.diff
LOG: Silence conversion warning; NFC (#205357)
This was triggering a conversion warning in MSVC.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 5772ef37ec762..cc3deaa83f63b 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -9126,7 +9126,7 @@ SDValue TargetLowering::expandPDEP(SDNode *Node, SelectionDAG &DAG) const {
// Each pass handles half the shift amount of the previous pass.
SDValue X = Val;
for (int S = (int)LogBW - 1; S >= 0; --S) {
- SDValue ShiftSv = DAG.getShiftAmountConstant(1u << S, VT, DL);
+ SDValue ShiftSv = DAG.getShiftAmountConstant(1ull << S, VT, DL);
SDValue T = DAG.getNode(ISD::SHL, DL, VT, X, ShiftSv);
SDValue UnshiftedBits =
DAG.getNode(ISD::AND, DL, VT, X, DAG.getNOT(DL, MvArray[S], VT));
More information about the llvm-commits
mailing list