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 3de59f7 commit cc247bcCopy full SHA for cc247bc
clang/lib/Parse/ParseOpenMP.cpp
@@ -2704,7 +2704,7 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective(
2704
// If no match is found and no otherwise clause is present, skip
2705
// OMP5.2 Chapter 7.4: If no otherwise clause is specified the effect is as
2706
// if one was specified without an associated directive variant.
2707
- if (BestIdx == -1 && Idx == 1) {
+ if (BestIdx == -1 && Idx > 0) {
2708
assert(Tok.is(tok::annot_pragma_openmp_end) &&
2709
"Expecting the end of the pragma here");
2710
ConsumeAnnotationToken();
0 commit comments