зеркало из https://github.com/microsoft/clang-1.git
The assert at Sema::ObjCActOnStartOfMethodDef should check CurMethodDecl instead of CurFunctionDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52719 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
09c31b0d78
Коммит
72fd336721
|
@ -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!");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче