From 7d13eae2540e202d9b920cfe9000667253a4b874 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 7 Apr 2005 00:30:13 +0000 Subject: [PATCH] Fix a really scary bug that Nate found where we weren't deleting the right elements auto of the autoCSE maps. llvm-svn: 21128 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 858b8ddab8eb..ea87a64ff66e 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(N)->getExtraValueType(); for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)