[clang] [Clang] Eagerly instantiate used constexpr function upon definition. (PR #73463)
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 13 01:32:25 PST 2023
================
@@ -4836,6 +4837,16 @@ ASTFileSignature ASTWriter::WriteASTCore(Sema &SemaRef, StringRef isysroot,
assert(SemaRef.PendingLocalImplicitInstantiations.empty() &&
"There are local ones at end of translation unit!");
+ // Build a record containing all pending instantiations of constexpr
+ // entities.
+ RecordData PendingInstantiationsOfConstexprEntities;
+ for (const auto &I : SemaRef.PendingInstantiationsOfConstexprEntities) {
----------------
sam-mccall wrote:
In case this will be relanded in some form:
This loop uses arbitrary hashtable order, leading to nondeterministic PCM output.
https://github.com/llvm/llvm-project/pull/73463
More information about the cfe-commits
mailing list