From: Sean Callanan Date: Tue, 11 Apr 2017 19:50:37 +0000 (+0000) Subject: [ExternalASTMerger] Fix the MSVC build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=384745c49331bf0e20170246b32e511a3ec560d6;p=clang [ExternalASTMerger] Fix the MSVC build git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299977 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExternalASTMerger.cpp b/lib/AST/ExternalASTMerger.cpp index 1d144047bd..e47ed34698 100644 --- a/lib/AST/ExternalASTMerger.cpp +++ b/lib/AST/ExternalASTMerger.cpp @@ -172,10 +172,10 @@ void ExternalASTMerger::FindExternalLexicalDecls( ForEachMatchingDC( DC, Importers, [DC, IsKindWeWant](const ImporterPair &IP, Source SourceDC) { - for (Source SourceDecl : SourceDC.get()->decls()) { - if (IsKindWeWant(SourceDecl.get()->getKind())) { + for (const Decl *SourceDecl : SourceDC.get()->decls()) { + if (IsKindWeWant(SourceDecl->getKind())) { Decl *ImportedDecl = - IP.Forward->Import(const_cast(SourceDecl.get())); + IP.Forward->Import(const_cast(SourceDecl)); assert(ImportedDecl->getDeclContext() == DC); } }