[cfe-commits] r49264 - /cfe/trunk/lib/Parse/ParseDecl.cpp

Chris Lattner sabre at nondot.org
Sat Apr 5 22:27:22 PDT 2008


Author: lattner
Date: Sun Apr  6 00:27:21 2008
New Revision: 49264

URL: http://llvm.org/viewvc/llvm-project?rev=49264&view=rev
Log:
another minor simplification

Modified:
    cfe/trunk/lib/Parse/ParseDecl.cpp

Modified: cfe/trunk/lib/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDecl.cpp?rev=49264&r1=49263&r2=49264&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Sun Apr  6 00:27:21 2008
@@ -1446,9 +1446,7 @@
   // 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);





More information about the cfe-commits mailing list