diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2012-10-11 16:02:02 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2012-10-11 16:02:02 +0000 |
| commit | 59e34ececfa38ca198ff8f05094ccdaa4d2d5b28 (patch) | |
| tree | 7d8190bf4dc0f2cfccbe6efb696a5188de7b7dc5 /clang/lib | |
| parent | c7dd722f0fc37ee5f1fbde97c000957fa9d46d12 (diff) | |
| download | bcm5719-llvm-59e34ececfa38ca198ff8f05094ccdaa4d2d5b28.tar.gz bcm5719-llvm-59e34ececfa38ca198ff8f05094ccdaa4d2d5b28.zip | |
ObjCMethodDecl::findPropertyDecl: bail out early if not an instance method.
Currently, Objective-C does not support class properties, even though it
allows calling class methods with dot syntax.
No intended functionality change; purely optimization.
llvm-svn: 165716
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index f4a0bdf38be..2dbb353af37 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -904,7 +904,7 @@ ObjCMethodDecl::findPropertyDecl(bool CheckOverrides) const { if (NumArgs > 1) return 0; - if (getMethodFamily() != OMF_None) + if (!isInstanceMethod() || getMethodFamily() != OMF_None) return 0; if (isPropertyAccessor()) { |

