summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-04-29 21:45:02 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-04-29 21:45:02 +0000
commitbff0167a0bb6b60f1002d420c03242e97707ca21 (patch)
tree4c810334dab4a081152eafb591068875ffd23ec0 /clang/lib/Sema/SemaDeclObjC.cpp
parent56ed2eab9ece1540e6079c1b82a436f57a4d088f (diff)
downloadbcm5719-llvm-bff0167a0bb6b60f1002d420c03242e97707ca21.tar.gz
bcm5719-llvm-bff0167a0bb6b60f1002d420c03242e97707ca21.zip
use of an ivar specified on a property @synthesize
and found in super class triggers a diagnostics. llvm-svn: 70414
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index da50573f23b..7eea4ff93e1 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -1895,7 +1895,6 @@ Sema::DeclPtrTy Sema::ActOnPropertyImplDecl(SourceLocation AtLoc,
// Check that we have a valid, previously declared ivar for @synthesize
if (Synthesize) {
// @synthesize
- bool NoExplicitPropertyIvar = (!PropertyIvar);
if (!PropertyIvar)
PropertyIvar = PropertyId;
QualType PropType = Context.getCanonicalType(property->getType());
@@ -1914,7 +1913,7 @@ Sema::DeclPtrTy Sema::ActOnPropertyImplDecl(SourceLocation AtLoc,
// a property implementation and to avoid future warnings.
}
else if (getLangOptions().ObjCNonFragileABI &&
- NoExplicitPropertyIvar && ClassDeclared != IDecl) {
+ ClassDeclared != IDecl) {
Diag(PropertyLoc, diag::error_ivar_in_superclass_use)
<< property->getDeclName() << Ivar->getDeclName()
<< ClassDeclared->getDeclName();
OpenPOWER on IntegriCloud