From 537b4a8159fc07709b9cb4b8c4e65c6deae358b3 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 14 Apr 2015 03:40:37 +0000 Subject: DebugInfo: Gut DISubprogram and DILexicalBlock* Gut the `DIDescriptor` wrappers around `MDLocalScope` subclasses. Note that `DILexicalBlock` wraps `MDLexicalBlockBase`, not `MDLexicalBlock`. llvm-svn: 234850 --- llvm/lib/IR/DebugLoc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/DebugLoc.cpp') 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(); } -- cgit v1.2.3