From: Chris Lattner Date: Thu, 7 Apr 2005 00:30:13 +0000 (+0000) Subject: Fix a really scary bug that Nate found where we weren't deleting the right X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8e8bd656b3eeb69947719c3673f37756f1b2a466;p=oota-llvm.git Fix a really scary bug that Nate found where we weren't deleting the right elements auto of the autoCSE maps. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21128 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 858b8ddab8e..ea87a64ff66 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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)