Use SDValue bool check. NFCI.

llvm-svn: 250653
This commit is contained in:
Simon Pilgrim 2015-10-18 12:33:54 +00:00
parent 01978cfa0c
commit 04d52d26f6
1 changed files with 2 additions and 2 deletions

View File

@ -3907,8 +3907,8 @@ SDValue SelectionDAG::getNode(unsigned Opcode, SDLoc DL, EVT VT,
break;
case ISD::SETCC: {
// Use FoldSetCC to simplify SETCC's.
SDValue Simp = FoldSetCC(VT, N1, N2, cast<CondCodeSDNode>(N3)->get(), DL);
if (Simp.getNode()) return Simp;
if (SDValue V = FoldSetCC(VT, N1, N2, cast<CondCodeSDNode>(N3)->get(), DL))
return V;
break;
}
case ISD::SELECT: