[clang] [Clang] prevent assertion failure in value-dependent initializer expressions (PR #112612)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 18 21:58:43 PDT 2024
================
@@ -11536,6 +11536,9 @@ bool ArrayExprEvaluator::VisitCXXParenListOrInitListExpr(
LValue Subobject = This;
Subobject.addArray(Info, ExprToVisit, CAT);
auto Eval = [&](const Expr *Init, unsigned ArrayIndex) {
+ if (Init->isValueDependent())
----------------
shafik wrote:
This looks reasonable, but please again I have have stated before in other PRs the summary needs to be more detailed. Explain that we are passing ArrayFillers to EvaluateInPlace when they are dependent .... and then explain what the fix is.
Thank you
https://github.com/llvm/llvm-project/pull/112612
More information about the cfe-commits
mailing list