summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-04-18 00:30:47 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-04-18 00:30:47 +0000
commitd83bdd38417fce465b8ef1896c6f30ec12c8a979 (patch)
tree563319090526848c4259e4afdd2ee0bc3081b460 /clang/lib
parentffe97a3925a28cd86fc6d5e93afd93c7fd24fe7c (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud