[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Thu Aug 25 17:13:23 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.167 -> 1.168
---
Log message:

Fix a nasty bug from a previous patch of mine


---
Diffs of the changes:  (+1 -1)

 SelectionDAG.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.167 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.168
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.167	Thu Aug 25 15:04:38 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Thu Aug 25 19:13:12 2005
@@ -1042,7 +1042,7 @@
   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);






More information about the llvm-commits mailing list