diff options
author | Steve Naroff <snaroff@apple.com> | 2008-07-25 17:57:26 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-07-25 17:57:26 +0000 |
commit | 394f3f483fa4e7b472630cfcd03f7840520958c5 (patch) | |
tree | cd875ebb42ff560ca5b4613caa52ab0791db68c4 /lib/Parse/ParseObjc.cpp | |
parent | 684b9d2d159da52bc858d81bc53a38db7958a158 (diff) |
Move fix in r54013 from the parser to sema.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseObjc.cpp')
-rw-r--r-- | lib/Parse/ParseObjc.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp index 38379b14e6..7d7ba10a38 100644 --- a/lib/Parse/ParseObjc.cpp +++ b/lib/Parse/ParseObjc.cpp @@ -1292,10 +1292,8 @@ Parser::DeclTy *Parser::ParseObjCMethodDefinition() { EnterScope(Scope::FnScope|Scope::DeclScope); // Tell the actions module that we have entered a method definition with the - // specified Declarator for the method. If we don't have an MDecl, avoid - // calling the actions module. - if (MDecl) - Actions.ObjCActOnStartOfMethodDef(CurScope, MDecl); + // specified Declarator for the method. + Actions.ObjCActOnStartOfMethodDef(CurScope, MDecl); StmtResult FnBody = ParseCompoundStatementBody(); @@ -1307,8 +1305,7 @@ Parser::DeclTy *Parser::ParseObjCMethodDefinition() { ExitScope(); // TODO: Pass argument information. - if (MDecl) - Actions.ActOnFinishFunctionBody(MDecl, FnBody.Val); + Actions.ActOnFinishFunctionBody(MDecl, FnBody.Val); return MDecl; } |