DebugInfo: Gut DIScope, DIEnumerator and DISubrange
[oota-llvm.git] / lib / IR / DebugLoc.cpp
index 984ee24883668fd8437c6cf993cdb5a8dc9fd42a..d9229483d0558fead688ba362da5cd5cd75219c0 100644 (file)
@@ -86,8 +86,8 @@ void DebugLoc::print(raw_ostream &OS) const {
     return;
 
   // Print source line info.
-  DIScope Scope = cast<MDScope>(getScope());
-  OS << Scope.getFilename();
+  auto *Scope = cast<MDScope>(getScope());
+  OS << Scope->getFilename();
   OS << ':' << getLine();
   if (getCol() != 0)
     OS << ':' << getCol();