diff options
author | Steve Naroff <snaroff@apple.com> | 2008-10-10 01:28:17 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-10-10 01:28:17 +0000 |
commit | 090276f5e164d491a1bb3f541bafdb394f5e6f04 (patch) | |
tree | ae729e4967e16751a9ace0c4037c4b3f847972f4 /lib/Parse/ParseExpr.cpp | |
parent | f02e9ddf5efc75917af712b3c7f909581205f0a5 (diff) |
Final phase of converting BlockDecls over to DeclContext. This is unfortunately a largish/complex diff, however it was necessry to pass all the current block tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index c8d95cf053..d0f5eb2607 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/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)) { |