diff options
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index 52b48cc732d..b4aee7c0ddd 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -642,9 +642,9 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S,      QualType PropertyIvarType = PropType.getNonReferenceType();      if (getLangOptions().ObjCAutoRefCount && -        PropertyIvarType->isObjCRetainableType() &&          (property->getPropertyAttributesAsWritten() & -         ObjCPropertyDecl::OBJC_PR_readonly)) { +         ObjCPropertyDecl::OBJC_PR_readonly) && +        PropertyIvarType->isObjCRetainableType()) {        setImpliedPropertyAttributeForReadOnlyProperty(property, Ivar);          } | 

