aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseDecl.cpp
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
commitfe9b2a84105b898b48a2935d50d209c880f36aa3 (patch)
tree174954da09a616d66e25b1040c0d464b49e2c04b /lib/Parse/ParseDecl.cpp
parent03f96110bc2c2c773e06a42982b17a03dd2e5379 (diff)
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
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r--lib/Parse/ParseDecl.cpp6
1 files 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;
}