From: Fariborz Jahanian Date: Fri, 18 Apr 2008 00:30:47 +0000 (+0000) Subject: Fixed a bug in categories and properties. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5833b901d02e628c9bcdb1c59efcc100a1faecad;p=clang Fixed a bug in categories and properties. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49883 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index b0ae1f28ea..05371e7172 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -977,7 +977,7 @@ Sema::DeclTy *Sema::ActOnPropertyImplDecl(SourceLocation AtLoc, return 0; } ObjCCategoryDecl *Categories; - for (ObjCCategoryDecl *Categories = IDecl->getCategoryList(); + for (Categories = IDecl->getCategoryList(); Categories; Categories = Categories->getNextClassCategory()) if (Categories->getIdentifier() == CatImplClass->getIdentifier()) break;