Parser::ParseObjCMethodDefinition(): Make sure we don't exit the BodyScope until ActOnFinishFunctionBody() is complete.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65880
91177308-0d34-0410-b5e6-
96231b3b80d8
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;
}