================ @@ -9195,7 +9195,7 @@ static bool checkOpenMPIterationSpace( SemaRef.Diag(CollapseLoopCountExpr->getExprLoc(), diag::note_omp_collapse_ordered_expr) << 0 << CollapseLoopCountExpr->getSourceRange(); - else + else if (OrderedLoopCountExpr) ---------------- alexey-bataev wrote:
I think better to fix the logic in line 9189: ``` if ((CollapseLoopCountExpr && OrderedLoopCountExpr) || (!CollapseLoopCountExpr && !OrderedLoopCountExpr)) ``` https://github.com/llvm/llvm-project/pull/110243 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits