forked from OSchip/llvm-project
The assert at Sema::ObjCActOnStartOfMethodDef should check CurMethodDecl instead of CurFunctionDecl.
llvm-svn: 52719
This commit is contained in:
parent
90ba8b6de2
commit
8a73d1f327
|
@ -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!");
|
||||
|
||||
|
|
Loading…
Reference in New Issue