]> granicus.if.org Git - clang/commitdiff
minor refactoring to improve compile-time performance.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 11 Jan 2012 19:48:08 +0000 (19:48 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 11 Jan 2012 19:48:08 +0000 (19:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147963 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaObjCProperty.cpp

index 52b48cc732d73f71c57f9ce1184599a0f8d25590..b4aee7c0ddd15dd9e0e057b11fec22271d8861b5 100644 (file)
@@ -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);    
     }