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

Peter Collingbourne peter at pcc.me.uk
Mon Oct 24 10:56:00 PDT 2011


Author: pcc
Date: Mon Oct 24 12:56:00 2011
New Revision: 142814

URL: http://llvm.org/viewvc/llvm-project?rev=142814&view=rev
Log:
Simplify parsing ellipsis in Parser::ParseAlignArgument, spotted by Doug.

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=142814&r1=142813&r2=142814&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDecl.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDecl.cpp Mon Oct 24 12:56:00 2011
@@ -1568,10 +1568,8 @@
   } else
     ER = ParseConstantExpression();
 
-  if (getLang().CPlusPlus0x && Tok.is(tok::ellipsis)) {
-    EllipsisLoc = Tok.getLocation();
-    ConsumeToken();
-  }
+  if (getLang().CPlusPlus0x && Tok.is(tok::ellipsis))
+    EllipsisLoc = ConsumeToken();
 
   return ER;
 }





More information about the cfe-commits mailing list