From 542cd5d3f974db68ba08f4a6d4742a39deea88e6 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Fri, 25 Jul 2008 17:57:26 +0000 Subject: Move fix in r54013 from the parser to sema. llvm-svn: 54032 --- clang/lib/Parse/ParseObjc.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'clang/lib/Parse/ParseObjc.cpp') diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp index 38379b14e6b..7d7ba10a38b 100644 --- a/clang/lib/Parse/ParseObjc.cpp +++ b/clang/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; } -- cgit v1.2.3