From: Jim Laskey Date: Wed, 4 Jan 2006 13:42:59 +0000 (+0000) Subject: Change how MachineDebugInfo is fetched. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7ca9ab3f5c1e9f2b1d4ded2389373ec672da217a;p=oota-llvm.git Change how MachineDebugInfo is fetched. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25089 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 #