diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-13 05:17:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-13 05:17:00 +0000 |
commit | eb516e7f0aa3223eab7967f4c0f8132d82efd841 (patch) | |
tree | fd9b8ac2722fe38604d725de34dc735b4308a9c6 /lib | |
parent | 9530ddcc605cb65d0a19bbfbfb8b73b09c4e4cfa (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index f5d6fd6120..793037930c 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(); |