[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 12 22:17:14 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.120 -> 1.121
---
Log message:
Fix a problem that nate reduced for me.
---
Diffs of the changes: (+2 -1)
LegalizeDAG.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.120 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.121
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.120 Fri May 13 00:09:11 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Fri May 13 00:17:00 2005
@@ -2009,7 +2009,8 @@
SDNode *User = *UI;
for (unsigned i = 0, e = User->getNumOperands(); i != e; ++i)
if (User->getOperand(i) == TheChain)
- return FindCallSeqEnd(User);
+ if (SDNode *Result = FindCallSeqEnd(User))
+ return Result;
}
assert(0 && "Unreachable");
abort();
More information about the llvm-commits
mailing list