diff options
Diffstat (limited to 'clang/lib/Parse/ParseExprCXX.cpp')
-rw-r--r-- | clang/lib/Parse/ParseExprCXX.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index e54858f7471..cad0a4ae6c1 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -792,6 +792,12 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer( Attr, DeclEndLoc); } + // FIXME: Rename BlockScope -> ClosureScope if we decide to continue using + // it. + ParseScope BodyScope(this, Scope::BlockScope | Scope::FnScope | + Scope::BreakScope | Scope::ContinueScope | + Scope::DeclScope); + Actions.ActOnStartOfLambdaDefinition(Intro, D, getCurScope()); // Parse compound-statement. @@ -801,11 +807,6 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer( return ExprError(); } - // FIXME: Rename BlockScope -> ClosureScope if we decide to continue using - // it. - ParseScope BodyScope(this, Scope::BlockScope | Scope::FnScope | - Scope::BreakScope | Scope::ContinueScope | - Scope::DeclScope); StmtResult Stmt(ParseCompoundStatementBody()); BodyScope.Exit(); |