summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
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
commita230dea394d9405dcf00cde41f8514f945c21ff9 (patch)
treeba6be4933b25df71822fbb0ba0be9b869cb6cde3 /clang/lib/Sema
parent2d317edcfddbe178db85999da5a5bb0e1d57723e (diff)
downloadbcm5719-llvm-a230dea394d9405dcf00cde41f8514f945c21ff9.tar.gz
bcm5719-llvm-a230dea394d9405dcf00cde41f8514f945c21ff9.zip
minor refactoring to improve compile-time performance.
llvm-svn: 147963
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp4
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);
}
OpenPOWER on IntegriCloud