summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-07 00:30:13 +0000
committerChris Lattner <sabre@nondot.org>2005-04-07 00:30:13 +0000
commit7d13eae2540e202d9b920cfe9000667253a4b874 (patch)
treeffec9a737d51f9cc44eef5b6c631434a41404850 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentd20628ff7d4e1c16d1334c5a13c60197ccfc8b6a (diff)
downloadbcm5719-llvm-7d13eae2540e202d9b920cfe9000667253a4b874.tar.gz
bcm5719-llvm-7d13eae2540e202d9b920cfe9000667253a4b874.zip
Fix a really scary bug that Nate found where we weren't deleting the right
elements auto of the autoCSE maps. llvm-svn: 21128
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 858b8ddab8e..ea87a64ff66 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -241,7 +241,7 @@ void SelectionDAG::DeleteNodeIfDead(SDNode *N, void *NodeSet) {
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)
OpenPOWER on IntegriCloud