From 443b2153e3c1c039f5fbf229bd2df2da179f3875 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 22 Oct 2009 00:15:17 +0000 Subject: [PATCH] Fix null pointer dereference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84806 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 8bd0370cc60..37736c04ab4 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 -- 2.34.1