From 1e23dd63159369ef8275fa8ec63a2db3d704f426 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Tue, 15 Aug 2017 12:40:01 +0000 Subject: [Sema] Silence -Wobjc-missing-property-synthesis for unavailable properties rdar://30296911 llvm-svn: 310916 --- clang/lib/Sema/SemaObjCProperty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema/SemaObjCProperty.cpp') diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index e1e85dfd5e5..d0b59eb7895 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -1895,7 +1895,7 @@ void Sema::DefaultSynthesizeProperties(Scope *S, ObjCImplDecl *IMPDecl, /* property = */ Prop->getIdentifier(), /* ivar = */ Prop->getDefaultSynthIvarName(Context), Prop->getLocation(), Prop->getQueryKind())); - if (PIDecl) { + if (PIDecl && !Prop->isUnavailable()) { Diag(Prop->getLocation(), diag::warn_missing_explicit_synthesis); Diag(IMPDecl->getLocation(), diag::note_while_in_implementation); } -- cgit v1.2.3