diff options
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index c8d95cf053c..d0f5eb26076 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -1094,6 +1094,9 @@ Parser::ExprResult Parser::ParseBlockLiteralExpression() { // within or outside of the block. EnterScope(Scope::BlockScope|Scope::FnScope|Scope::BreakScope| Scope::ContinueScope|Scope::DeclScope); + + // Inform sema that we are starting a block. + Actions.ActOnBlockStart(CaretLoc, CurScope); // Parse the return type if present. DeclSpec DS; @@ -1119,7 +1122,7 @@ Parser::ExprResult Parser::ParseBlockLiteralExpression() { } // Inform sema that we are starting a block. - Actions.ActOnBlockStart(CaretLoc, CurScope, ParamInfo); + Actions.ActOnBlockArguments(ParamInfo); ExprResult Result = true; if (Tok.is(tok::l_brace)) { |