Skip to content

Commit 535b209

Browse files
committed
[SelectionDAGISel] Use getSignedConstant for OPC_EmitInteger.
1 parent f999b32 commit 535b209

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3784,7 +3784,9 @@ void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch,
37843784
if (Opcode >= OPC_EmitInteger && Opcode <= OPC_EmitInteger64)
37853785
Val = decodeSignRotatedValue(Val);
37863786
RecordedNodes.push_back(std::pair<SDValue, SDNode *>(
3787-
CurDAG->getTargetConstant(Val, SDLoc(NodeToMatch), VT), nullptr));
3787+
CurDAG->getSignedConstant(Val, SDLoc(NodeToMatch), VT,
3788+
/*isTarget=*/true),
3789+
nullptr));
37883790
continue;
37893791
}
37903792
case OPC_EmitRegister:

0 commit comments

Comments
 (0)