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

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 6 17:30:29 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.59 -> 1.60
---
Log message:

Fix a really scary bug that Nate found where we weren't deleting the right
elements auto of the autoCSE maps.


---
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.59 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.60
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.59	Tue Apr  5 17:36:56 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Wed Apr  6 19:30:13 2005
@@ -241,7 +241,7 @@
   case ISD::SEXTLOAD:
   case ISD::ZEXTLOAD: {
     EVTStruct NN;
-    NN.Opcode = ISD::TRUNCSTORE;
+    NN.Opcode = N->getOpcode();
     NN.VT = N->getValueType(0);
     NN.EVT = cast<MVTSDNode>(N)->getExtraValueType();
     for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)






More information about the llvm-commits mailing list