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 c5160c0 commit 9b4b94aCopy full SHA for 9b4b94a
clang/lib/Parse/ParseOpenMP.cpp
@@ -2886,6 +2886,8 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective(
2886
// OMP5.2 Chapter 7.4: If no otherwise clause is specified the effect is as
2887
// if one was specified without an associated directive variant.
2888
if (BestIdx == -1 && Idx == 1) {
2889
+ assert(Tok.is(tok::annot_pragma_openmp_end) &&
2890
+ "Expecting the end of the pragma here");
2891
ConsumeAnnotationToken();
2892
return StmtEmpty();
2893
}
0 commit comments