]> granicus.if.org Git - clang/commitdiff
Fixed a bug in categories and properties.
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 18 Apr 2008 00:30:47 +0000 (00:30 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 18 Apr 2008 00:30:47 +0000 (00:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49883 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index b0ae1f28ea115a3bbaae7dfe3aa592d323915d7b..05371e717244c2b5f88cd59563a1279a8ec89064 100644 (file)
@@ -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;