diff options
Diffstat (limited to 'llvm/lib/IR/DebugLoc.cpp')
-rw-r--r-- | llvm/lib/IR/DebugLoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugLoc.cpp b/llvm/lib/IR/DebugLoc.cpp index df4802d9549..984ee248836 100644 --- a/llvm/lib/IR/DebugLoc.cpp +++ b/llvm/lib/IR/DebugLoc.cpp @@ -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(); } |