Skip to content

Commit c5160c0

Browse files
committed
Addressed review comment.
1 parent ab69f1e commit c5160c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Parse/ParseOpenMP.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2886,7 +2886,8 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective(
28862886
// OMP5.2 Chapter 7.4: If no otherwise clause is specified the effect is as
28872887
// if one was specified without an associated directive variant.
28882888
if (BestIdx == -1 && Idx == 1) {
2889-
SkipUntil(tok::annot_pragma_openmp_end,tok::identifier);
2889+
ConsumeAnnotationToken();
2890+
return StmtEmpty();
28902891
}
28912892
break;
28922893
}

0 commit comments

Comments
 (0)