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 | 87421c86587204a91cdce12e2e249dbeb4c6ed8e (patch) | |
tree | 4d765ab8c0902cf56fce67edba34612a452ecbdc /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | dfcde88d073488afca0aac91dae196e10c30c40d (diff) | |
download | bcm5719-llvm-87421c86587204a91cdce12e2e249dbeb4c6ed8e.tar.gz bcm5719-llvm-87421c86587204a91cdce12e2e249dbeb4c6ed8e.zip |
Fix a bug in ReplaceAllUsesWith
llvm-svn: 23122
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 43163151049..b47002f1165 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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; |