diff options
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index ec4f95eb71f..e16ac8c20f6 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -349,9 +349,7 @@ bool DISubprogram::Verify() const { continue; // walk the inlined-at scopes - while (MDLocation *IA = DL->getInlinedAt()) - DL = IA; - MDScope *Scope = DL->getScope(); + MDScope *Scope = DL->getInlinedAtScope(); if (!Scope) return false; while (!isa<MDSubprogram>(Scope)) { |