From 269f8c069105e13f3845a8dbc7796ac9a15dc882 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 10 Jan 2006 19:43:26 +0000 Subject: [PATCH] silence a warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25184 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.34.1