[llvm-commits] [llvm] r84806 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Oct 21 17:15:17 PDT 2009
Author: asl
Date: Wed Oct 21 19:15:17 2009
New Revision: 84806
URL: http://llvm.org/viewvc/llvm-project?rev=84806&view=rev
Log:
Fix null pointer dereference.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=84806&r1=84805&r2=84806&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Wed Oct 21 19:15:17 2009
@@ -4601,7 +4601,7 @@
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
More information about the llvm-commits
mailing list