diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-28 23:59:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-28 23:59:36 +0000 |
commit | ff01698ec037050fd9452d3b3486de568024ee72 (patch) | |
tree | b24c1a6e5fb9608f9891591f1677afb90e12474e /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | c8a89a1fcb900b8204c166fc4e9f5c3a1a3937de (diff) |
Fix a bug in ReplaceAllUsesWith
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 4316315104..b47002f116 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2084,7 +2084,7 @@ void SelectionDAG::ReplaceAllUsesWith(SDNode *From, const std::vector<SDOperand> &To) { assert(From->getNumValues() == To.size() && "Incorrect number of values to replace with!"); - if (To.size() == 1) { + if (To.size() == 1 && To[0].Val->getNumValues() == 1) { // Degenerate case handled above. ReplaceAllUsesWith(SDOperand(From, 0), To[0]); return; |