Skip to content

Commit 3380e26

Browse files
Add newly imported declarations into imported cache
1 parent 4492084 commit 3380e26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/AST/ASTImporter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7569,7 +7569,7 @@ ExpectedDecl ASTNodeImporter::VisitRequiresExprBodyDecl(RequiresExprBodyDecl* D)
75697569
return To;
75707570
To->setLexicalDeclContext(LexicalDC);
75717571
LexicalDC->addDeclInternal(To);
7572-
return To;
7572+
return Importer.MapImported(D, To);
75737573
}
75747574

75757575
ExpectedStmt ASTNodeImporter::VisitConceptSpecializationExpr(ConceptSpecializationExpr* E) {
@@ -7610,7 +7610,7 @@ ExpectedDecl ASTNodeImporter::VisitConceptDecl(ConceptDecl* D) {
76107610
return To;
76117611
To->setLexicalDeclContext(LexicalDC);
76127612
LexicalDC->addDeclInternal(To);
7613-
return To;
7613+
return Importer.MapImported(D, To);
76147614
}
76157615

76167616
ExpectedDecl ASTNodeImporter::VisitImplicitConceptSpecializationDecl(ImplicitConceptSpecializationDecl* D) {
@@ -7627,7 +7627,7 @@ ExpectedDecl ASTNodeImporter::VisitImplicitConceptSpecializationDecl(ImplicitCon
76277627
return To;
76287628
To->setLexicalDeclContext(LexicalDC);
76297629
LexicalDC->addDeclInternal(To);
7630-
return To;
7630+
return Importer.MapImported(D, To);
76317631
}
76327632

76337633
ExpectedStmt ASTNodeImporter::VisitSourceLocExpr(SourceLocExpr *E) {

0 commit comments

Comments
 (0)