Skip to content

Commit 3bcffe5

Browse files
committed
[X86] Fix MSVC implicit shift extension warning.
1 parent cee0bf9 commit 3bcffe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30007,7 +30007,7 @@ static SDValue LowerShift(SDValue Op, const X86Subtarget &Subtarget,
3000730007
// This is equal to Masked - 2*SignBitMask which will correctly sign
3000830008
// extend our result.
3000930009
SDValue CstHighBit =
30010-
DAG.getConstant(1 << (EltSizeInBits - 1), dl, NarrowScalarVT);
30010+
DAG.getConstant(1ULL << (EltSizeInBits - 1), dl, NarrowScalarVT);
3001130011
SDValue SplatHighBit = DAG.getSplat(VT, dl, CstHighBit);
3001230012
// This does not induce recursion, all operands are constants.
3001330013
SDValue SignBitMask = DAG.getNode(LogicalOpc, dl, VT, SplatHighBit, Amt);

0 commit comments

Comments
 (0)