diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-02-02 22:37:48 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-02-02 22:37:48 +0000 |
commit | 57539cf8c808c87a69afb010f47c0a62857797f4 (patch) | |
tree | dfc2f0a21838c9799aa6cf47a3f2fd49103c91ca /clang | |
parent | 877d5a712dd43709b5427825df3913c901017a61 (diff) | |
download | bcm5719-llvm-57539cf8c808c87a69afb010f47c0a62857797f4.tar.gz bcm5719-llvm-57539cf8c808c87a69afb010f47c0a62857797f4.zip |
Further enhance comment for property in continuation class.
llvm-svn: 149639
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index 42a5c9d0e87..9d849ff74fd 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -281,7 +281,10 @@ Sema::HandlePropertyInClassExtension(Scope *S, QualType ConvertedType; // Relax the strict type matching for property type in continuation class. // Allow property object type of continuation class to be different as long - // as it narrows the object type in its primary class property. + // as it narrows the object type in its primary class property. Note that + // this conversion is safe only because the wider type is for a 'readonly' + // property in primary class and 'narrowed' type for a 'readwrite' property + // in continuation class. if (!isa<ObjCObjectPointerType>(PIDecl->getType()) || !isa<ObjCObjectPointerType>(PDecl->getType()) || (!isObjCPointerConversion(PDecl->getType(), PIDecl->getType(), |