aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaObjCProperty.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-01-11 19:48:08 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-01-11 19:48:08 +0000
commit3efd348d3586b22bb0153f17181128a1b3c41140 (patch)
treea2f11d915ee439b18faa4cd557b99d5834fd6e4e /lib/Sema/SemaObjCProperty.cpp
parent7d5e6948e6a4e04ee67b607f931d90d3063579f2 (diff)
minor refactoring to improve compile-time performance.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-rw-r--r--lib/Sema/SemaObjCProperty.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp
index 52b48cc732..b4aee7c0dd 100644
--- a/lib/Sema/SemaObjCProperty.cpp
+++ b/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);
}