summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaObjCProperty.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-04-29 17:52:18 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-04-29 17:52:18 +0000
commit9e1a3af030f56159b681ae9c50cfe6cee3b3c150 (patch)
tree6693f522ffb1dfa259c128be1f76af47cc927f7f /clang/lib/Sema/SemaObjCProperty.cpp
parentdfcd0661a1a45976e2f23d14dadc2d3411e4ef2c (diff)
downloadbcm5719-llvm-9e1a3af030f56159b681ae9c50cfe6cee3b3c150.tar.gz
bcm5719-llvm-9e1a3af030f56159b681ae9c50cfe6cee3b3c150.zip
Properties cannot be synthesized by-dafult in
categories. Issue usual warnings instead of confusing error message. Radar 7920807 llvm-svn: 102645
Diffstat (limited to 'clang/lib/Sema/SemaObjCProperty.cpp')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index 1d27e44dbe7..13c75e4fe96 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/lib/Sema/SemaObjCProperty.cpp
@@ -810,7 +810,7 @@ void Sema::DiagnoseUnimplementedProperties(ObjCImplDecl* IMPDecl,
Prop->getPropertyImplementation() == ObjCPropertyDecl::Optional ||
PropImplMap.count(Prop))
continue;
- if (LangOpts.ObjCNonFragileABI2) {
+ if (LangOpts.ObjCNonFragileABI2 && !isa<ObjCCategoryImplDecl>(IMPDecl)) {
ActOnPropertyImplDecl(IMPDecl->getLocation(),
IMPDecl->getLocation(),
true, DeclPtrTy::make(IMPDecl),
OpenPOWER on IntegriCloud