diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-08-15 12:40:01 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-08-15 12:40:01 +0000 |
commit | 1e23dd63159369ef8275fa8ec63a2db3d704f426 (patch) | |
tree | 0dfb48405285e7c758ce6ccc5dd6fc8689e87dae /clang/lib/Sema/SemaObjCProperty.cpp | |
parent | 6957ab5b7b98f7c372313eec6c81601bfa6b5860 (diff) | |
download | bcm5719-llvm-1e23dd63159369ef8275fa8ec63a2db3d704f426.tar.gz bcm5719-llvm-1e23dd63159369ef8275fa8ec63a2db3d704f426.zip |
[Sema] Silence -Wobjc-missing-property-synthesis for unavailable properties
rdar://30296911
llvm-svn: 310916
Diffstat (limited to 'clang/lib/Sema/SemaObjCProperty.cpp')
-rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |