From fe9b2a84105b898b48a2935d50d209c880f36aa3 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 24 Oct 2011 17:56:00 +0000 Subject: [PATCH] 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 --- lib/Parse/ParseDecl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.50.1