[clang] [C++20][Modules] Prevent premature calls to PassInterestingDeclsToConsumer() within FinishedDeserializing(). (PR #129982)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 16 21:28:13 PDT 2025
================
@@ -4309,12 +4309,12 @@ Decl *ASTReader::ReadDeclRecord(GlobalDeclID ID) {
void ASTReader::PassInterestingDeclsToConsumer() {
assert(Consumer);
- if (PassingDeclsToConsumer)
+ if (!CanPassDeclsToConsumer)
return;
// Guard variable to avoid recursively redoing the process of passing
// decls to consumer.
- SaveAndRestore GuardPassingDeclsToConsumer(PassingDeclsToConsumer, true);
+ SaveAndRestore GuardPassingDeclsToConsumer(CanPassDeclsToConsumer, false);
----------------
shafik wrote:
nitpick `false` -> `/*NewValue=*/false`
https://github.com/llvm/llvm-project/pull/129982
More information about the cfe-commits
mailing list