An upcoming LLVM commit will gut `DIScope`, so just use `MDScope*`
directly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235066
91177308-0d34-0410-b5e6-
96231b3b80d8
return;
SourceManager &SM = CGM.getContext().getSourceManager();
- llvm::DIScope Scope = cast<llvm::MDScope>(LexicalBlockStack.back());
+ auto *Scope = cast<llvm::MDScope>(LexicalBlockStack.back());
PresumedLoc PCLoc = SM.getPresumedLoc(CurLoc);
- if (PCLoc.isInvalid() || Scope.getFilename() == PCLoc.getFilename())
+ if (PCLoc.isInvalid() || Scope->getFilename() == PCLoc.getFilename())
return;
if (auto *LBF = dyn_cast<llvm::MDLexicalBlockFile>(Scope)) {