Skip to content

Commit e5cb900

Browse files
committed
Parse Pack{} even in the early pass over SIL files
Otherwise we don't actually accept this syntax in function signatures and value pack parameters aren't testable.
1 parent d0635a6 commit e5cb900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/ParseType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ ParserResult<TypeRepr> Parser::parseTypeSimple(
179179
case tok::identifier:
180180
// In SIL files (not just when parsing SIL types), accept the
181181
// Pack{} syntax for spelling variadic type packs.
182-
if (SIL && Tok.isContextualKeyword("Pack") &&
182+
if (isInSILMode() && Tok.isContextualKeyword("Pack") &&
183183
peekToken().is(tok::l_brace)) {
184184
TokReceiver->registerTokenKindChange(Tok.getLoc(),
185185
tok::contextual_keyword);

0 commit comments

Comments
 (0)