From c439f0de6daa46c2be74165fe2f3d0ac13fddaaf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 6 Apr 2008 05:27:21 +0000 Subject: another minor simplification llvm-svn: 49264 --- clang/lib/Parse/ParseDecl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'clang/lib/Parse/ParseDecl.cpp') diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 1659af30e6a..a46490c7e1e 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -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); -- cgit v1.2.3