[SelectionDAG] Use SDUse::get() instead of a static_cast to SDValue. NFC (#150043)

This commit is contained in:
Craig Topper 2025-07-22 09:28:02 -07:00 committed by GitHub
parent bbe912f1e7
commit 75ec7250aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10559,7 +10559,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
ArrayRef<SDUse> Ops) {
switch (Ops.size()) {
case 0: return getNode(Opcode, DL, VT);
case 1: return getNode(Opcode, DL, VT, static_cast<const SDValue>(Ops[0]));
case 1: return getNode(Opcode, DL, VT, Ops[0].get());
case 2: return getNode(Opcode, DL, VT, Ops[0], Ops[1]);
case 3: return getNode(Opcode, DL, VT, Ops[0], Ops[1], Ops[2]);
default: break;