[cfe-commits] r65880 - /cfe/trunk/lib/Parse/ParseObjc.cpp
Steve Naroff
snaroff at apple.com
Mon Mar 2 14:00:56 PST 2009
Author: snaroff
Date: Mon Mar 2 16:00:56 2009
New Revision: 65880
URL: http://llvm.org/viewvc/llvm-project?rev=65880&view=rev
Log:
Fix <rdar://problem/6636803> [sema] crash on InterfaceBuilder.
Parser::ParseObjCMethodDefinition(): Make sure we don't exit the BodyScope until ActOnFinishFunctionBody() is complete.
Modified:
cfe/trunk/lib/Parse/ParseObjc.cpp
Modified: cfe/trunk/lib/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseObjc.cpp?rev=65880&r1=65879&r2=65880&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/lib/Parse/ParseObjc.cpp Mon Mar 2 16:00:56 2009
@@ -1386,11 +1386,12 @@
FnBody = Actions.ActOnCompoundStmt(BraceLoc, BraceLoc,
MultiStmtArg(Actions), false);
+ // TODO: Pass argument information.
+ Actions.ActOnFinishFunctionBody(MDecl, move(FnBody));
+
// Leave the function body scope.
BodyScope.Exit();
- // TODO: Pass argument information.
- Actions.ActOnFinishFunctionBody(MDecl, move(FnBody));
return MDecl;
}
More information about the cfe-commits
mailing list