diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-06 16:59:10 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-04-06 16:59:10 +0000 |
| commit | 15e3a5c4b86e0991c5aa7cbdb771b60355e95461 (patch) | |
| tree | 2941e709eba480b5c5fc9a6a1230c92d4ba96e15 /clang/lib/Sema/SemaDeclObjC.cpp | |
| parent | dcceee734c25c256ffac95a844afe06ad3f1f095 (diff) | |
| download | bcm5719-llvm-15e3a5c4b86e0991c5aa7cbdb771b60355e95461.tar.gz bcm5719-llvm-15e3a5c4b86e0991c5aa7cbdb771b60355e95461.zip | |
writable property in a category of class's superclass
makes the property writable in the current class.
llvm-svn: 68446
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 299f101bdbf..80d46bcabbe 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -835,6 +835,9 @@ bool Sema::isPropertyReadonly(ObjCPropertyDecl *PDecl, ObjCImplementations[IDecl->getIdentifier()]) if (ImpDecl->getInstanceMethod(PDecl->getSetterName())) return false; + // If all fails, look at the super class. + if (ObjCInterfaceDecl *SIDecl = IDecl->getSuperClass()) + return isPropertyReadonly(PDecl, SIDecl); return true; } |

