================ @@ -2282,7 +2282,8 @@ void Sema::ActOnPopScope(SourceLocation Loc, Scope *S) { // Remove this name from our lexical scope, and warn on it if we haven't // already. - IdResolver.RemoveDecl(D); + if (!PP.isIncrementalProcessingEnabled()) + IdResolver.RemoveDecl(D); ---------------- AaronBallman wrote:
Ah thank you for the explanation -- I think that warrants a comment in the code to explain what's going on, because it's not obvious from context. https://github.com/llvm/llvm-project/pull/89804 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits