Fix a really scary bug that Nate found where we weren't deleting the right

elements auto of the autoCSE maps.

llvm-svn: 21128
This commit is contained in:
Chris Lattner 2005-04-07 00:30:13 +00:00
parent d20628ff7d
commit 7d13eae254
1 changed files with 1 additions and 1 deletions

View File

@ -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)