From a230dea394d9405dcf00cde41f8514f945c21ff9 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 11 Jan 2012 19:48:08 +0000 Subject: minor refactoring to improve compile-time performance. llvm-svn: 147963 --- clang/lib/Sema/SemaObjCProperty.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Sema') 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); } -- cgit v1.2.3