diff options
-rw-r--r-- | lib/Sema/SemaObjCProperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaObjCProperty.cpp b/lib/Sema/SemaObjCProperty.cpp index bf4939d9fd..9695b811ee 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -598,7 +598,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S, !getLangOptions().ObjCAutoRefCount && getLangOptions().getGCMode() != LangOptions::NonGC); - if (PropertyIsGCWeak) + if (PropertyIsGCWeak && !PropType.isObjCGCStrong()) PropType = Context.getObjCGCQualType(PropType, Qualifiers::Weak); QualType PropertyIvarType = PropType; if (PropType->isReferenceType()) |