From ccbcce0219b25863deebe5e6539f9c260ecce8b4 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 24 Oct 2011 17:56:00 +0000 Subject: Simplify parsing ellipsis in Parser::ParseAlignArgument, spotted by Doug. llvm-svn: 142814 --- clang/lib/Parse/ParseDecl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'clang') diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 3511f4abde9..07a52586e9f 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/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; } -- cgit v1.2.3