diff options
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index d90f2adc77..476b6afea5 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/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; } |