Skip to content

Commit 00cbb68

Browse files
committed
[LegalizeDAG] Use getSignedConstant. NFC
1 parent 50896e7 commit 00cbb68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ void SelectionDAGLegalize::ExpandDYNAMIC_STACKALLOC(SDNode* Node,
17701770
Tmp1 = DAG.getNode(Opc, dl, VT, SP, Size); // Value
17711771
if (Alignment > StackAlign)
17721772
Tmp1 = DAG.getNode(ISD::AND, dl, VT, Tmp1,
1773-
DAG.getConstant(-Alignment.value(), dl, VT));
1773+
DAG.getSignedConstant(-Alignment.value(), dl, VT));
17741774
Chain = DAG.getCopyToReg(Chain, dl, SPReg, Tmp1); // Output chain
17751775

17761776
Tmp2 = DAG.getCALLSEQ_END(Chain, 0, 0, SDValue(), dl);

0 commit comments

Comments
 (0)