summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaObjCProperty.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-01-05 23:00:04 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-01-05 23:00:04 +0000
commita61f676cfed2a9a2c5619026d74b60bc797d0f25 (patch)
tree82ebe43cd3f17747b1055b8d95e04e6690727768 /clang/lib/Sema/SemaObjCProperty.cpp
parent64e3868cf062eb5cd03f8eb1dbd84d078a664e9d (diff)
downloadbcm5719-llvm-a61f676cfed2a9a2c5619026d74b60bc797d0f25.tar.gz
bcm5719-llvm-a61f676cfed2a9a2c5619026d74b60bc797d0f25.zip
Don't warn on missing 'copy' attribute on a 'block'
property when it is 'readonly'. // rdar://8820813 llvm-svn: 122923
Diffstat (limited to 'clang/lib/Sema/SemaObjCProperty.cpp')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index 6aa1c693bc9..71d87923456 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/lib/Sema/SemaObjCProperty.cpp
@@ -1326,6 +1326,7 @@ void Sema::CheckObjCPropertyAttributes(Decl *PDecl,
}
if (!(Attributes & ObjCDeclSpec::DQ_PR_copy)
+ &&!(Attributes & ObjCDeclSpec::DQ_PR_readonly)
&& getLangOptions().getGCMode() == LangOptions::GCOnly
&& PropertyTy->isBlockPointerType())
Diag(Loc, diag::warn_objc_property_copy_missing_on_block);
OpenPOWER on IntegriCloud