aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-10 19:43:26 +0000
committerChris Lattner <sabre@nondot.org>2006-01-10 19:43:26 +0000
commit269f8c069105e13f3845a8dbc7796ac9a15dc882 (patch)
tree4459ab0c60097e99e4cbb16df234d7fb550b14eb
parent9fbe14586d01caccd5a10862fcdd40a472214edc (diff)
silence a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25184 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 6ed69124a6..db5c8e2ff9 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.