================
@@ -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 &&
----------------
Vipul-Cariappa wrote:

Done.

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