From bb1d60de9c0c7013714097468b304e54f6e36cd9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 13 May 2005 05:17:00 +0000 Subject: Fix a problem that nate reduced for me. llvm-svn: 21923 --- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/SelectionDAG') diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index f5d6fd61201..793037930c0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2009,7 +2009,8 @@ static SDNode *FindCallSeqEnd(SDNode *Node) { 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(); -- cgit v1.2.3