diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-20 22:10:08 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-20 22:10:08 +0000 |
commit | 2fbe13540a906cdb10a26889ab5c181ce242f563 (patch) | |
tree | 71ee935b52af16fc0b4b6e2cf4efd8c4985498bf /llvm/lib/IR/DebugLoc.cpp | |
parent | a7fbcbfe008e5796a0e51b830dd3034478bc47c4 (diff) | |
download | llvm-2fbe13540a906cdb10a26889ab5c181ce242f563.zip llvm-2fbe13540a906cdb10a26889ab5c181ce242f563.tar.gz llvm-2fbe13540a906cdb10a26889ab5c181ce242f563.tar.bz2 |
DebugInfo: Delete subclasses of DIScope
Delete subclasses of (the already defunct) `DIScope`, updating users to
use the raw pointers from the `Metadata` hierarchy directly.
llvm-svn: 235356
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 4cf7e9e..2d00c98 100644 --- a/llvm/lib/IR/DebugLoc.cpp +++ b/llvm/lib/IR/DebugLoc.cpp @@ -50,7 +50,7 @@ MDNode *DebugLoc::getInlinedAtScope() const { DebugLoc DebugLoc::getFnDebugLoc() const { // FIXME: Add a method on \a MDLocation that does this work. const MDNode *Scope = getInlinedAtScope(); - if (DISubprogram SP = getDISubprogram(Scope)) + if (auto *SP = getDISubprogram(Scope)) return DebugLoc::get(SP->getScopeLine(), 0, SP); return DebugLoc(); |