1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Fix null pointer dereference.

llvm-svn: 84806
This commit is contained in:
Anton Korobeynikov 2009-10-22 00:15:17 +00:00
parent 068e5420ce
commit 726b132e13

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