From: Peter Collingbourne Date: Mon, 24 Oct 2011 17:56:00 +0000 (+0000) Subject: Simplify parsing ellipsis in Parser::ParseAlignArgument, spotted by Doug. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe9b2a84105b898b48a2935d50d209c880f36aa3;p=clang Simplify parsing ellipsis in Parser::ParseAlignArgument, spotted by Doug. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142814 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index 3511f4abde..07a52586e9 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -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; }