Skip to content

Commit ca31af4

Browse files
committed
Use consume instead ofof apply
1 parent 266ff53 commit ca31af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Parse/ParseOpenMP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ static OpenMPDirectiveKind parseOpenMPDirectiveKind(Parser &P) {
6565
if (Tok.isAnnotation())
6666
return OMPD_unknown;
6767

68-
S = DNP.apply(S, P.getPreprocessor().getSpelling(Tok));
68+
S = DNP.consume(S, P.getPreprocessor().getSpelling(Tok));
6969
if (S == nullptr)
7070
return OMPD_unknown;
7171

7272
while (!Tok.isAnnotation()) {
7373
OpenMPDirectiveKind DKind = S->Value;
7474
Tok = P.getPreprocessor().LookAhead(0);
7575
if (!Tok.isAnnotation()) {
76-
S = DNP.apply(S, P.getPreprocessor().getSpelling(Tok));
76+
S = DNP.consume(S, P.getPreprocessor().getSpelling(Tok));
7777
if (S == nullptr)
7878
return DKind;
7979
P.ConsumeToken();

0 commit comments

Comments
 (0)