Fix null pointer dereference.

llvm-svn: 84806
This commit is contained in:
Anton Korobeynikov 2009-10-22 00:15:17 +00:00
parent 820782aae0
commit 8626367e38
1 changed files with 1 additions and 1 deletions

View File

@ -4601,7 +4601,7 @@ SDNode *SelectionDAG::MorphNodeTo(SDNode *N, unsigned Opc,
N->InitOperands(new SDUse[NumOps], Ops, NumOps);
N->OperandsNeedDelete = true;
} else
MN->InitOperands(MN->OperandList, Ops, NumOps);
N->InitOperands(N->OperandList, Ops, NumOps);
}
// Delete any nodes that are still dead after adding the uses for the