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 | 8f4528bc7c670bf46db9f76ae4a25b6e39da06b4 (patch) | |
| tree | f763fb720624242218d3e7178b1caf825eeeb0b4 /clang/lib/Sema/SemaDeclObjC.cpp | |
| parent | 41d09add4fd46ef680ca81c489bbd374620f82f2 (diff) | |
| download | bcm5719-llvm-8f4528bc7c670bf46db9f76ae4a25b6e39da06b4.tar.gz bcm5719-llvm-8f4528bc7c670bf46db9f76ae4a25b6e39da06b4.zip | |
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.
llvm-svn: 66162
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 5 |
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; } |

