uselistorder: Start pulling out -preserve-ll-uselistorder
[oota-llvm.git] / lib / IR / DebugLoc.cpp
index df4802d95497534239e5a3dd823fb39dfeb162f4..984ee24883668fd8437c6cf993cdb5a8dc9fd42a 100644 (file)
@@ -51,7 +51,7 @@ DebugLoc DebugLoc::getFnDebugLoc() const {
   // FIXME: Add a method on \a MDLocation that does this work.
   const MDNode *Scope = getInlinedAtScope();
   if (DISubprogram SP = getDISubprogram(Scope))
-    return DebugLoc::get(SP.getScopeLineNumber(), 0, SP);
+    return DebugLoc::get(SP->getScopeLine(), 0, SP);
 
   return DebugLoc();
 }