From 6f9ff633a6eccc4b3d17a8c20cd8cbbfb43a2a2f Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Wed, 4 Jan 2006 13:42:59 +0000 Subject: [PATCH] Change how MachineDebugInfo is fetched. llvm-svn: 25089 --- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 1d9dd5c2c890..af2c4ba13989 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -619,7 +619,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { default: assert(0 && "This action is not supported yet!"); case TargetLowering::Expand: { if (TLI.isOperationLegal(ISD::DEBUG_LOC, MVT::Other)) { - MachineDebugInfo &DebugInfo = DAG.getMachineFunction().getDebugInfo(); + MachineDebugInfo &DebugInfo = getMachineDebugInfo(); std::vector Ops; Ops.push_back(Tmp1); // chain Ops.push_back(Node->getOperand(1)); // line #