diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-01-02 17:24:32 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-01-02 17:24:32 +0000 |
commit | c2f5c3c85f3dc3ea39cc6ee00d89a231f955d8e2 (patch) | |
tree | 3cf2f0a6f50421c7e419f46130d56f7f68cb7905 /lib/Sema/SemaDeclObjC.cpp | |
parent | 788ec0926fdef0c3d12a1b4490351a45359080a8 (diff) |
ObjectiveC. Class methods must be ignored when looking for
property accessor's missing backing ivar. This eliminates
the bogus warning being issued. // rdar://15728901
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198322 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | lib/Sema/SemaDeclObjC.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 078a0e3ab9..7024cf6cb3 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -3489,7 +3489,8 @@ void Sema::DiagnoseUseOfUnimplementedSelectors() { ObjCIvarDecl * Sema::GetIvarBackingPropertyAccessor(const ObjCMethodDecl *Method, const ObjCPropertyDecl *&PDecl) const { - + if (Method->isClassMethod()) + return 0; const ObjCInterfaceDecl *IDecl = Method->getClassInterface(); if (!IDecl) return 0; |