[cfe-commits] r52719 - /cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Wed Jun 25 07:24:09 PDT 2008
Author: akirtzidis
Date: Wed Jun 25 09:24:09 2008
New Revision: 52719
URL: http://llvm.org/viewvc/llvm-project?rev=52719&view=rev
Log:
The assert at Sema::ObjCActOnStartOfMethodDef should check CurMethodDecl instead of CurFunctionDecl.
Modified:
cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=52719&r1=52718&r2=52719&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Wed Jun 25 09:24:09 2008
@@ -21,7 +21,7 @@
/// 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!");
More information about the cfe-commits
mailing list