================
@@ -42,9 +42,13 @@ IncrementalParser::IncrementalParser(CompilerInstance
&Instance,
External->StartTranslationUnit(Consumer);
P->Initialize();
+ S.RegisterSemaProxy();
}
-IncrementalParser::~IncrementalParser() { P.reset(); }
+IncrementalParser::~IncrementalParser() {
+ S.UnregisterSemaProxy();
----------------
zyn0217 wrote:
Can we just delegate that 'UnregisterSemaProxy' to the destructor of Sema?
https://github.com/llvm/llvm-project/pull/173537
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits