[clang] [Clang] Instantiate functions from constant evaluation. (PR #205557)
Daniel M. Katz via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 27 08:01:57 PDT 2026
================
@@ -2580,7 +2582,10 @@ VarDecl::evaluateValueImpl(SmallVectorImpl<PartialDiagnosticAt> *Notes,
Expr::EvalResult EStatus;
EStatus.Diag = Notes;
bool Result =
- Init->EvaluateAsInitializer(Ctx, this, EStatus, IsConstantInitialization);
+ isConstexpr()
----------------
katzdm wrote:
I'm using `IsConstantInitialization` now, rather than checking whether the variable is constexpr, which I think covers the cases that we want to cover.
https://github.com/llvm/llvm-project/pull/205557
More information about the cfe-commits
mailing list