Skip to content

Commit 4662a4f

Browse files
committed
Fix parsing
1 parent 86d4e6d commit 4662a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseOpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4020,7 +4020,7 @@ OMPClause *Parser::ParseOpenMPSingleExprWithArgClause(OpenMPDirectiveKind DKind,
40204020
unsigned Type = NumberOfModifiers;
40214021
unsigned Modifier;
40224022
SourceLocation Loc;
4023-
if (PP.getSpelling(Tok) == "fallback" && NextToken().is(tok::l_paren)) {
4023+
if (!Tok.isAnnotation() && PP.getSpelling(Tok) == "fallback" && NextToken().is(tok::l_paren)) {
40244024
ConsumeToken();
40254025
BalancedDelimiterTracker ParenT(*this, tok::l_paren, tok::r_paren);
40264026
ParenT.consumeOpen();

0 commit comments

Comments
 (0)