Skip to content

Commit 75ec725

Browse files
authored
[SelectionDAG] Use SDUse::get() instead of a static_cast to SDValue. NFC (#150043)
1 parent bbe912f commit 75ec725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10559,7 +10559,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
1055910559
ArrayRef<SDUse> Ops) {
1056010560
switch (Ops.size()) {
1056110561
case 0: return getNode(Opcode, DL, VT);
10562-
case 1: return getNode(Opcode, DL, VT, static_cast<const SDValue>(Ops[0]));
10562+
case 1: return getNode(Opcode, DL, VT, Ops[0].get());
1056310563
case 2: return getNode(Opcode, DL, VT, Ops[0], Ops[1]);
1056410564
case 3: return getNode(Opcode, DL, VT, Ops[0], Ops[1], Ops[2]);
1056510565
default: break;

0 commit comments

Comments
 (0)