projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fbe145
)
silence a warning
author
Chris Lattner
<sabre@nondot.org>
Tue, 10 Jan 2006 19:43:26 +0000
(19:43 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 10 Jan 2006 19:43:26 +0000
(19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25184
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 6ed69124a6f6bf87a022bf4cf459884fa50d3364..db5c8e2ff99e8af9803f7e17421e775e8b70a09e 100644
(file)
--- 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.