[clang] [Clang] Instantiate constexpr function when they are needed. (PR #173537)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 9 06:55:27 PST 2026
================
@@ -161,6 +162,10 @@ void clang::ParseAST(Sema &S, bool PrintStats, bool SkipFunctionBodies) {
return M;
});
P.Initialize();
+
+ llvm::scope_exit _([&S]() { S.unregisterSemaProxy(); });
+ S.registerSemaProxy();
----------------
erichkeane wrote:
Do we want to unregister BEFORE the `Consumer->HandleTopLevelDecls`? We probably don't need this during codegen, do we?
https://github.com/llvm/llvm-project/pull/173537
More information about the cfe-commits
mailing list