s/DebugLoc.CompileUnit/DebugLoc.Scope/g
[oota-llvm.git] / lib / CodeGen / SelectionDAG / FastISel.cpp
index e4ccbce471c0f1287350e791d94473e9252976c9..ee408dcb2688e83957dc59387421a5eeadc06acb 100644 (file)
@@ -385,10 +385,9 @@ bool FastISel::SelectCall(User *I) {
       
       DebugLocTuple PrevLocTpl = MF.getDebugLocTuple(PrevLoc);
       DISubprogram SP(FSI->getSubprogram());
-      unsigned LabelID = DW->RecordInlinedFnStart(SP,
-                                                  DICompileUnit(PrevLocTpl.CompileUnit),
-                                                  PrevLocTpl.Line,
-                                                  PrevLocTpl.Col);
+      unsigned LabelID = 
+        DW->RecordInlinedFnStart(SP,DICompileUnit(PrevLocTpl.Scope),
+                                 PrevLocTpl.Line, PrevLocTpl.Col);
       const TargetInstrDesc &II = TII.get(TargetInstrInfo::DBG_LABEL);
       BuildMI(MBB, DL, II).addImm(LabelID);
       return true;