Skip to content

Commit 75d24cb

Browse files
committed
Setting ellipsis token kind
1 parent 9126a12 commit 75d24cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Parse/ParsePattern.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,10 @@ Parser::parseParameterClause(SourceLoc &leftParenLoc,
360360
}
361361

362362
// '...'?
363-
if (Tok.isEllipsis())
363+
if (Tok.isEllipsis()) {
364+
Tok.setKind(tok::ellipsis);
364365
param.EllipsisLoc = consumeToken();
366+
}
365367

366368
// ('=' expr)?
367369
if (Tok.is(tok::equal)) {

0 commit comments

Comments
 (0)