[ExternalASTMerger] Fix the MSVC build

llvm-svn: 299977
This commit is contained in:
Sean Callanan 2017-04-11 19:50:37 +00:00
parent b7160ca466
commit 4bb0d78c84
1 changed files with 3 additions and 3 deletions

View File

@ -172,10 +172,10 @@ void ExternalASTMerger::FindExternalLexicalDecls(
ForEachMatchingDC(
DC, Importers, [DC, IsKindWeWant](const ImporterPair &IP,
Source<const DeclContext *> SourceDC) {
for (Source<const Decl *> 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<Decl *>(SourceDecl.get()));
IP.Forward->Import(const_cast<Decl *>(SourceDecl));
assert(ImportedDecl->getDeclContext() == DC);
}
}