summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index d90f2adc77a..476b6afea57 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -1757,7 +1757,10 @@ Sema::DeclTy *Sema::ActOnPropertyImplDecl(SourceLocation AtLoc,
// Check that this is a previously declared 'ivar' in 'IDecl' interface
Ivar = IDecl->lookupInstanceVariable(PropertyIvar);
if (!Ivar) {
- if (!getLangOptions().ObjCNonFragileABI)
+ if (getLangOptions().ObjCNonFragileABI)
+ Diag(PropertyLoc, diag::error_synthesized_ivar_yet_not_supported)
+ << PropertyId;
+ else
Diag(PropertyLoc, diag::error_missing_property_ivar_decl) << PropertyId;
return 0;
}
OpenPOWER on IntegriCloud