[clang] [Clang] Instantiate functions from constant evaluation. (PR #205557)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 24 07:18:41 PDT 2026
================
@@ -324,7 +324,8 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
GlobalNewDeleteDeclared(false), DisableTypoCorrection(false),
TyposCorrected(0), IsBuildingRecoveryCallExpr(false),
CurrentInstantiationScope(nullptr), NonInstantiationEntries(0),
- ArgPackSubstIndex(std::nullopt), SatisfactionCache(Context) {
+ ArgPackSubstIndex(std::nullopt), SatisfactionCache(Context),
+ ProxyForEval(makeProxyForEval(*this)) {
----------------
cor3ntin wrote:
This would probably explode if the proxy is used before init - you probably rely on no one doing that/ Maybe that's fine
https://github.com/llvm/llvm-project/pull/205557
More information about the cfe-commits
mailing list