================
@@ -235,7 +235,9 @@ void IncrementalParser::CleanUpPTU(TranslationUnitDecl 
*MostRecentTU) {
       }
       for (NamedDecl *D : NamedDeclsToRemove) {
         List.remove(D);
-        S.IdResolver.RemoveDecl(D);
+        if (D->getDeclName().getFETokenInfo() && !D->getLangOpts().ObjC &&
----------------
vgvassilev wrote:

Good point -- we should move that into a lambda to avoid code duplication.

https://github.com/llvm/llvm-project/pull/218129
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to