[cfe-commits] r147963 - /cfe/trunk/lib/Sema/SemaObjCProperty.cpp

Fariborz Jahanian fjahanian at apple.com
Wed Jan 11 11:48:08 PST 2012


Author: fjahanian
Date: Wed Jan 11 13:48:08 2012
New Revision: 147963

URL: http://llvm.org/viewvc/llvm-project?rev=147963&view=rev
Log:
minor refactoring to improve compile-time performance.

Modified:
    cfe/trunk/lib/Sema/SemaObjCProperty.cpp

Modified: cfe/trunk/lib/Sema/SemaObjCProperty.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaObjCProperty.cpp?rev=147963&r1=147962&r2=147963&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaObjCProperty.cpp (original)
+++ cfe/trunk/lib/Sema/SemaObjCProperty.cpp Wed Jan 11 13:48:08 2012
@@ -642,9 +642,9 @@
     QualType PropertyIvarType = PropType.getNonReferenceType();
     
     if (getLangOptions().ObjCAutoRefCount &&
-        PropertyIvarType->isObjCRetainableType() &&
         (property->getPropertyAttributesAsWritten() &
-         ObjCPropertyDecl::OBJC_PR_readonly)) {
+         ObjCPropertyDecl::OBJC_PR_readonly) &&
+        PropertyIvarType->isObjCRetainableType()) {
       setImpliedPropertyAttributeForReadOnlyProperty(property, Ivar);    
     }
     





More information about the cfe-commits mailing list