summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-10-22 00:15:17 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-10-22 00:15:17 +0000
commit443b2153e3c1c039f5fbf229bd2df2da179f3875 (patch)
treefc30c093ac3729060b5dd19b21aab3e00bd6fe7b
parent49b63a1f2c493f6452d22cf0df4c147e0539fb2e (diff)
downloadexternal_llvm-443b2153e3c1c039f5fbf229bd2df2da179f3875.zip
external_llvm-443b2153e3c1c039f5fbf229bd2df2da179f3875.tar.gz
external_llvm-443b2153e3c1c039f5fbf229bd2df2da179f3875.tar.bz2
Fix null pointer dereference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84806 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 8bd0370..37736c0 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -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