================
@@ -22210,6 +22210,52 @@ bool Expr::EvaluateAsInitializer(const ASTContext 
&Ctx, const VarDecl *VD,
          CheckMemoryLeaks(Info);
 }
 
+bool Expr::EvaluateAsConstantInitializer(EvalResult &Result,
----------------
akash-manna-sky wrote:

Done. The separate function is removed; a new `ConstantExprKind::Initializer` 
makes `EvaluateAsConstantExpr` fold through undefined behavior like 
`isConstantInitializer` did, and the bytecode `Context::evaluate` now uses its 
`Kind` to keep the initialized object alive.

https://github.com/llvm/llvm-project/pull/221390
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to