From: Chris Lattner Date: Tue, 10 Jan 2006 19:43:26 +0000 (+0000) Subject: silence a warning X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=269f8c069105e13f3845a8dbc7796ac9a15dc882;p=oota-llvm.git silence a warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25184 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 6ed69124a6f..db5c8e2ff99 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1975,13 +1975,14 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { case TargetLowering::Custom: { SDOperand Tmp = TLI.LowerOperation(Result, DAG); if (Tmp.Val) { - SDOperand Tmp2, RetVal; + SDOperand Tmp2, RetVal(0,0); for (unsigned i = 0, e = Node->getNumValues(); i != e; ++i) { Tmp2 = LegalizeOp(Tmp.getValue(i)); AddLegalizedOperand(SDOperand(Node, i), Tmp2); if (i == Op.ResNo) RetVal = Tmp; } + assert(RetVal.Val && "Illegal result number"); return RetVal; } // FALLTHROUGH if the target thinks it is legal.