================
@@ -231,6 +249,9 @@ void IncrementalParser::CleanUpPTU(TranslationUnitDecl
*MostRecentTU) {
!D->getLangOpts().CPlusPlus)
S.IdResolver.RemoveDecl(ND);
}
+
+ // Lookup alone is not enough: the redeclaration chain still reaches these.
+ withdrawMostRecentTU(MostRecentTU);
----------------
vgvassilev wrote:
No, I think we can keep it like this for now to move forward. Thanks for
explaining.
https://github.com/llvm/llvm-project/pull/213235
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits