From: Duncan P. N. Exon Smith Date: Thu, 16 Apr 2015 01:36:36 +0000 (+0000) Subject: DebugInfo: Prepare for DIScope to be gutted in LLVM X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32cb4405ec773e6a2743cd85df81362f93526f22;p=clang DebugInfo: Prepare for DIScope to be gutted in LLVM 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 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 1908ffa809..ed8bb20756 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -120,10 +120,10 @@ void CGDebugInfo::setLocation(SourceLocation Loc) { return; SourceManager &SM = CGM.getContext().getSourceManager(); - llvm::DIScope Scope = cast(LexicalBlockStack.back()); + auto *Scope = cast(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(Scope)) {