The assert at Sema::ObjCActOnStartOfMethodDef should check CurMethodDecl instead of CurFunctionDecl.

llvm-svn: 52719
This commit is contained in:
Argyrios Kyrtzidis 2008-06-25 14:24:09 +00:00
parent 90ba8b6de2
commit 8a73d1f327
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ using namespace clang;
/// ObjCActOnStartOfMethodDef - This routine sets up parameters; invisible
/// and user declared, in the method definition's AST.
void Sema::ObjCActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) {
assert(CurFunctionDecl == 0 && "Method parsing confused");
assert(CurMethodDecl == 0 && "Method parsing confused");
ObjCMethodDecl *MDecl = dyn_cast<ObjCMethodDecl>(static_cast<Decl *>(D));
assert(MDecl != 0 && "Not a method declarator!");