diff options
Diffstat (limited to 'lib/Sema/SemaObjCProperty.cpp')
-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 012e2569c3..b47d62780b 100644 --- a/lib/Sema/SemaObjCProperty.cpp +++ b/lib/Sema/SemaObjCProperty.cpp @@ -592,7 +592,7 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S, PropertyIvarType = Context.getQualifiedType(PropertyIvarType, qs); } else if (kind & ObjCPropertyDecl::OBJC_PR_weak) { - if (getLangOptions().ObjCNoAutoRefCountRuntime) { + if (!getLangOptions().ObjCRuntimeHasWeak) { Diag(PropertyLoc, diag::err_arc_weak_no_runtime); Diag(property->getLocation(), diag::note_property_declare); } |