Skip to content

Commit 97aab61

Browse files
committed
Add isXYZIdentifier calls to a few more use cases.
1 parent 44ce0f0 commit 97aab61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ParseSIL/ParseSIL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7023,7 +7023,7 @@ bool SILParserTUState::parseSILDifferentiabilityWitness(Parser &P) {
70237023
SourceLoc lBraceLoc;
70247024
P.consumeIf(tok::l_brace, lBraceLoc);
70257025
// Parse JVP (optional).
7026-
if (P.Tok.is(tok::identifier) && P.Tok.getText() == "jvp") {
7026+
if (P.isJVPIdentifier(P.Tok)) {
70277027
P.consumeToken(tok::identifier);
70287028
if (P.parseToken(tok::colon, diag::sil_diff_witness_expected_token, ":"))
70297029
return true;
@@ -7032,7 +7032,7 @@ bool SILParserTUState::parseSILDifferentiabilityWitness(Parser &P) {
70327032
return true;
70337033
}
70347034
// Parse VJP (optional).
7035-
if (P.Tok.is(tok::identifier) && P.Tok.getText() == "vjp") {
7035+
if (P.isVJPIdentifier(P.Tok)) {
70367036
P.consumeToken(tok::identifier);
70377037
if (P.parseToken(tok::colon, diag::sil_diff_witness_expected_token, ":"))
70387038
return true;

0 commit comments

Comments
 (0)