diff options
author | Steve Naroff <snaroff@apple.com> | 2009-03-05 15:45:01 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-03-05 15:45:01 +0000 |
commit | fbffca65a95e26b198c084a81a33b9cdfcd01101 (patch) | |
tree | 4912b62549a1f26cd0229eea7b1f2ab6c39f355f /lib | |
parent | 61d6852f67b4416bb96f1613c1aa589c8cbc17db (diff) |
Tweak diag for <rdar://problem/5982579> [clang on xcode] (using arch=x86_64): synthesized property 'sdkPath' must either be named the same as a compatible ivar or must explicitly name an ivar.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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; } |