[clang] [Clang] Eagerly instantiate used constexpr function upon definition. (PR #73463)
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 28 11:55:41 PST 2023
================
@@ -8718,6 +8731,18 @@ void ASTReader::ReadPendingInstantiations(
PendingInstantiations.clear();
}
+void ASTReader::ReadPendingOfInstantiationsForConstexprEntity(
+ const NamedDecl *D, llvm::SmallSetVector<NamedDecl *, 4> &Decls) {
+ for (auto *Redecl : D->redecls()) {
+ DeclID Id = Redecl->getGlobalID();
+ auto It = PendingInstantiationsOfConstexprEntities.find(Id);
----------------
zygoloid wrote:
Maybe skip this lookup for declarations that aren't from an AST file?
https://github.com/llvm/llvm-project/pull/73463
More information about the cfe-commits
mailing list