DebugInfo: Delete subclasses of DIScope
[oota-llvm.git] / lib / IR / DebugLoc.cpp
index 4cf7e9e34e1862991c19d8defabf2c13a36ab8c1..2d00c9833114441d8a5c92db85e41727808f7e92 100644 (file)
@@ -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();