summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-10-24 17:56:00 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-10-24 17:56:00 +0000
commitccbcce0219b25863deebe5e6539f9c260ecce8b4 (patch)
tree18a2b1168b2582169d8b8abe1b427c4fa7b570b4 /clang/lib
parent4ed1afa51dfa574202325598e17093a9fc41970d (diff)
downloadbcm5719-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.cpp6
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;
}
OpenPOWER on IntegriCloud