diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-04-18 00:30:47 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-04-18 00:30:47 +0000 |
commit | d83bdd38417fce465b8ef1896c6f30ec12c8a979 (patch) | |
tree | 563319090526848c4259e4afdd2ee0bc3081b460 /clang/lib | |
parent | ffe97a3925a28cd86fc6d5e93afd93c7fd24fe7c (diff) | |
download | bcm5719-llvm-d83bdd38417fce465b8ef1896c6f30ec12c8a979.tar.gz bcm5719-llvm-d83bdd38417fce465b8ef1896c6f30ec12c8a979.zip |
Fixed a bug in categories and properties.
llvm-svn: 49883
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index b0ae1f28ea1..05371e71724 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/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; |