================
@@ -5346,7 +5346,6 @@ static EvalStmtResult EvaluateStmt(StmtResult &Result, 
EvalInfo &Info,
     const Expr *RetExpr = cast<ReturnStmt>(S)->getRetValue();
     FullExpressionRAII Scope(Info);
     if (RetExpr && RetExpr->isValueDependent()) {
-      EvaluateDependentExpr(RetExpr, Info);
----------------
mizvekov wrote:

This is a pure function that's supposed to be called only for its return value, 
which is being discarded here.

That function has an assert internally that is firing when we transform a 
declrefexpr referencing a lambda.
This happens on a transform with an incomplete template argument list. Empty 
even, all template arguments being null.

I can double check for more details, but a transform pass without any actual 
transformation shouldn't produce errors.

https://github.com/llvm/llvm-project/pull/100692
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to