diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-06 05:27:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-06 05:27:21 +0000 |
commit | a711dd0131590075c0f61954d98b9927613d0557 (patch) | |
tree | a45993638a37d42062058df8d58be5a8f769f2e7 /lib/Parse/ParseDecl.cpp | |
parent | 5dcc6ce4a68b3bd4b89c5697c9728e1533e71e03 (diff) |
another minor simplification
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 1659af30e6..a46490c7e1 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/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); |