DebugInfo: Gut DIScope, DIEnumerator and DISubrange
[oota-llvm.git] / lib / CodeGen / LiveDebugVariables.cpp
index a07a7c9e5677187dcb1b1c77e4a6ffec907741a6..52532b1495ab299317a19b523a7918326ec78275 100644 (file)
@@ -362,9 +362,9 @@ static void printDebugLoc(DebugLoc DL, raw_ostream &CommentOS,
   if (!DL)
     return;
 
-  DIScope Scope = cast<MDScope>(DL.getScope());
+  auto *Scope = cast<MDScope>(DL.getScope());
   // Omit the directory, because it's likely to be long and uninteresting.
-  CommentOS << Scope.getFilename();
+  CommentOS << Scope->getFilename();
   CommentOS << ':' << DL.getLine();
   if (DL.getCol() != 0)
     CommentOS << ':' << DL.getCol();