]> granicus.if.org Git - clang/commitdiff
Simplify parsing ellipsis in Parser::ParseAlignArgument, spotted by Doug.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 24 Oct 2011 17:56:00 +0000 (17:56 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 24 Oct 2011 17:56:00 +0000 (17:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142814 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDecl.cpp

index 3511f4abde9634af1fd5c0bcb49b4d283c11b38c..07a52586e9f8ec772f07c5f943c453b4d5f2de84 100644 (file)
@@ -1568,10 +1568,8 @@ ExprResult Parser::ParseAlignArgument(SourceLocation Start,
   } 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;
 }