diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-24 17:56:00 +0000 | 
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-24 17:56:00 +0000 | 
| commit | ccbcce0219b25863deebe5e6539f9c260ecce8b4 (patch) | |
| tree | 18a2b1168b2582169d8b8abe1b427c4fa7b570b4 /clang/lib | |
| parent | 4ed1afa51dfa574202325598e17093a9fc41970d (diff) | |
| download | bcm5719-llvm-ccbcce0219b25863deebe5e6539f9c260ecce8b4.tar.gz bcm5719-llvm-ccbcce0219b25863deebe5e6539f9c260ecce8b4.zip | |
Simplify parsing ellipsis in Parser::ParseAlignArgument, spotted by Doug.
llvm-svn: 142814
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 6 | 
1 files changed, 2 insertions, 4 deletions
| 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;  } | 

