forked from OSchip/llvm-project
minor refactoring to improve compile-time performance.
llvm-svn: 147963
This commit is contained in:
parent
2d317edcfd
commit
a230dea394
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue