another minor simplification

llvm-svn: 49264
This commit is contained in:
Chris Lattner 2008-04-06 05:27:21 +00:00
parent 521ff2b430
commit c439f0de6d
1 changed files with 1 additions and 3 deletions

View File

@ -1446,9 +1446,7 @@ void Parser::ParseBracketDeclarator(Declarator &D) {
// the the token after the star is a ']'. Since stars in arrays are
// infrequent, use of lookahead is not costly here.
if (Tok.is(tok::star) && GetLookAheadToken(1).is(tok::r_square)) {
// Remember the '*' token, in case we have to un-get it.
Token StarTok = Tok;
ConsumeToken();
ConsumeToken(); // Eat the '*'.
if (StaticLoc.isValid())
Diag(StaticLoc, diag::err_unspecified_vla_size_with_static);