diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 1d9dd5c2c89..af2c4ba1398 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/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 #