File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7023,7 +7023,7 @@ bool SILParserTUState::parseSILDifferentiabilityWitness(Parser &P) {
7023
7023
SourceLoc lBraceLoc;
7024
7024
P.consumeIf (tok::l_brace, lBraceLoc);
7025
7025
// Parse JVP (optional).
7026
- if (P.Tok . is (tok::identifier) && P.Tok . getText () == " jvp " ) {
7026
+ if (P.isJVPIdentifier ( P.Tok ) ) {
7027
7027
P.consumeToken (tok::identifier);
7028
7028
if (P.parseToken (tok::colon, diag::sil_diff_witness_expected_token, " :" ))
7029
7029
return true ;
@@ -7032,7 +7032,7 @@ bool SILParserTUState::parseSILDifferentiabilityWitness(Parser &P) {
7032
7032
return true ;
7033
7033
}
7034
7034
// Parse VJP (optional).
7035
- if (P.Tok . is (tok::identifier) && P.Tok . getText () == " vjp " ) {
7035
+ if (P.isVJPIdentifier ( P.Tok ) ) {
7036
7036
P.consumeToken (tok::identifier);
7037
7037
if (P.parseToken (tok::colon, diag::sil_diff_witness_expected_token, " :" ))
7038
7038
return true ;
You can’t perform that action at this time.
0 commit comments