================ @@ -11099,6 +11099,19 @@ OpenACCClause *TreeTransform<Derived>::TransformOpenACCClause( ParsedClause.setDefaultDetails( cast<OpenACCDefaultClause>(OldClause)->getDefaultClauseKind()); break; + case OpenACCClauseKind::If: { + Expr *Cond = const_cast<Expr *>( + cast<OpenACCIfClause>(OldClause)->getConditionExpr()); ---------------- erichkeane wrote:
If the condition is invalid, we shouldn't have constructed an 'if' clause in the first place. That said, I think an assert makes sense here. https://github.com/llvm/llvm-project/pull/88411 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits