[clang] [Clang] prevent assertion failure in value-dependent initializer expressions (PR #112612)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 19 05:14:09 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())
----------------
a-tarasyuk wrote:
@shafik Thanks for the feedback. I've updated the PR summary.
https://github.com/llvm/llvm-project/pull/112612
More information about the cfe-commits
mailing list