================ @@ -8413,6 +8418,15 @@ void ASTReader::InitializeSema(Sema &S) { NewOverrides.applyOverrides(SemaObj->getLangOpts()); } + for (GlobalDeclID ID : DeclsWithEffectsToVerify) { + Decl *D = GetDecl(ID); + if (auto *FD = dyn_cast<FunctionDecl>(D)) + SemaObj->addDeclWithEffects(FD, FD->getFunctionEffects()); + else if (auto *BD = dyn_cast<BlockDecl>(D)) + SemaObj->addDeclWithEffects(BD, BD->getFunctionEffects()); + } ---------------- erichkeane wrote:
Are we expecting anything else to make it into this list? Should there be an 'else assert' here? https://github.com/llvm/llvm-project/pull/99656 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits