diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-08-26 00:13:12 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-08-26 00:13:12 +0000 |
| commit | 1cb550c603bbe8b5fec79f85ab11d65d14aa17bd (patch) | |
| tree | 6df1ced908110cf4a9117059fd2639e421709101 /llvm/lib/CodeGen | |
| parent | b81431b0122cea1290be0717f74b0b2ee233436f (diff) | |
| download | bcm5719-llvm-1cb550c603bbe8b5fec79f85ab11d65d14aa17bd.tar.gz bcm5719-llvm-1cb550c603bbe8b5fec79f85ab11d65d14aa17bd.zip | |
Fix a nasty bug from a previous patch of mine
llvm-svn: 23069
Diffstat (limited to 'llvm/lib/CodeGen')
| -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 c3d1bb398e4..9d7e5b1648a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1042,7 +1042,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, SDNode *N; if (VT != MVT::Flag) { // Don't CSE flag producing nodes SDNode *&E = UnaryOps[std::make_pair(Opcode, std::make_pair(Operand, VT))]; - if (E) return SDOperand(N, 0); + if (E) return SDOperand(E, 0); E = N = new SDNode(Opcode, Operand); } else { N = new SDNode(Opcode, Operand); |

