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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165716 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp
index f4a0bdf..2dbb353 100644
--- a/lib/AST/DeclObjC.cpp
+++ b/lib/AST/DeclObjC.cpp
@@ -904,7 +904,7 @@
   if (NumArgs > 1)
     return 0;
 
-  if (getMethodFamily() != OMF_None)
+  if (!isInstanceMethod() || getMethodFamily() != OMF_None)
     return 0;
   
   if (isPropertyAccessor()) {