From: Chris Lattner Date: Fri, 13 May 2005 05:17:00 +0000 (+0000) Subject: Fix a problem that nate reduced for me. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eb516e7f0aa3223eab7967f4c0f8132d82efd841;p=oota-llvm.git Fix a problem that nate reduced for me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21923 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index f5d6fd61201..793037930c0 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/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();