summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-02-23 01:26:30 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-02-23 01:26:30 +0000
commitafe1386ed9a899f1c1b27ca3f55773e674b64300 (patch)
treef54b9f2e034332b816b53efc7ea90fcc6583c581 /clang/lib/Sema/SemaDeclObjC.cpp
parentfbbe2617dc31b1531d44219f354a3f259ca95738 (diff)
downloadbcm5719-llvm-afe1386ed9a899f1c1b27ca3f55773e674b64300.tar.gz
bcm5719-llvm-afe1386ed9a899f1c1b27ca3f55773e674b64300.zip
More support for ivars in class extension.
llvm-svn: 96850
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 5f69dc4462e..e40e8fedc07 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -599,13 +599,9 @@ ActOnStartCategoryInterface(SourceLocation AtInterfaceLoc,
SourceLocation EndProtoLoc) {
ObjCCategoryDecl *CDecl = 0;
ObjCInterfaceDecl *IDecl = getObjCInterfaceDecl(ClassName, ClassLoc);
- if (!CategoryName) {
+ if (!CategoryName)
// Class extensions require a special treatment. Use an existing one.
- for (CDecl = IDecl->getCategoryList(); CDecl;
- CDecl = CDecl->getNextClassCategory())
- if (CDecl->IsClassExtension())
- break;
- }
+ CDecl = IDecl->getClassExtension();
if (!CDecl) {
CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc, ClassLoc,
CategoryLoc, CategoryName);
OpenPOWER on IntegriCloud