summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitfb5f46541cf63387fc81f85b98b2ab72f6c8526b (patch)
treefc9406bf8274d07ea1cb0857bc42bdda4888ac29 /llvm/lib/CodeGen
parent7e97a6dc59a06eb52abeb0619cc24539e1363688 (diff)
downloadbcm5719-llvm-fb5f46541cf63387fc81f85b98b2ab72f6c8526b.tar.gz
bcm5719-llvm-fb5f46541cf63387fc81f85b98b2ab72f6c8526b.zip
silence a warning
llvm-svn: 25184
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 6ed69124a6f..db5c8e2ff99 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud