minor refactoring to improve compile-time performance.

llvm-svn: 147963
This commit is contained in:
Fariborz Jahanian 2012-01-11 19:48:08 +00:00
parent 2d317edcfd
commit a230dea394
1 changed files with 2 additions and 2 deletions

View 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);
}