We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7038e commit 0830320Copy full SHA for 0830320
clang/lib/Sema/SemaOpenMP.cpp
@@ -9195,7 +9195,7 @@ static bool checkOpenMPIterationSpace(
9195
SemaRef.Diag(CollapseLoopCountExpr->getExprLoc(),
9196
diag::note_omp_collapse_ordered_expr)
9197
<< 0 << CollapseLoopCountExpr->getSourceRange();
9198
- else
+ else if (OrderedLoopCountExpr)
9199
SemaRef.Diag(OrderedLoopCountExpr->getExprLoc(),
9200
9201
<< 1 << OrderedLoopCountExpr->getSourceRange();
0 commit comments