summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExprCXX.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-05 03:27:11 +0000
committerAlp Toker <alp@nuanti.com>2014-01-05 03:27:11 +0000
commit094e521e3fa1459991e62ae320076a6f930b134e (patch)
tree077af3dee1e6a8979a4902a2320ac0638524474f /clang/lib/Parse/ParseExprCXX.cpp
parent0db10c4feff8e1933f53811bff38737b18cf1af1 (diff)
downloadbcm5719-llvm-094e521e3fa1459991e62ae320076a6f930b134e.tar.gz
bcm5719-llvm-094e521e3fa1459991e62ae320076a6f930b134e.zip
Parse: Token consumption modernization and loop de-nesting
Cleanup only. llvm-svn: 198539
Diffstat (limited to 'clang/lib/Parse/ParseExprCXX.cpp')
-rw-r--r--clang/lib/Parse/ParseExprCXX.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp
index fe380e29d36..42e737004b4 100644
--- a/clang/lib/Parse/ParseExprCXX.cpp
+++ b/clang/lib/Parse/ParseExprCXX.cpp
@@ -1008,10 +1008,8 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
// Parse 'mutable'[opt].
SourceLocation MutableLoc;
- if (Tok.is(tok::kw_mutable)) {
- MutableLoc = ConsumeToken();
+ if (TryConsumeToken(tok::kw_mutable, MutableLoc))
DeclEndLoc = MutableLoc;
- }
// Parse exception-specification[opt].
ExceptionSpecificationType ESpecType = EST_None;
OpenPOWER on IntegriCloud