[clang] [Clang] Instantiate constexpr function when they are needed. (PR #173537)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 29 00:51:37 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list