================ @@ -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 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
