summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-06 05:27:21 +0000
committerChris Lattner <sabre@nondot.org>2008-04-06 05:27:21 +0000
commitc439f0de6daa46c2be74165fe2f3d0ac13fddaaf (patch)
tree588bb73b6e052808fbc8deb9aad91bf1b1a999cd /clang/lib
parent521ff2b430c9f97314c6f286235358aa52b30043 (diff)
downloadbcm5719-llvm-c439f0de6daa46c2be74165fe2f3d0ac13fddaaf.tar.gz
bcm5719-llvm-c439f0de6daa46c2be74165fe2f3d0ac13fddaaf.zip
another minor simplification
llvm-svn: 49264
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 1 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud