[cfe-commits] r165716 - /cfe/trunk/lib/AST/DeclObjC.cpp
Jordan Rose
jordan_rose at apple.com
Thu Oct 11 09:02:02 PDT 2012
Author: jrose
Date: Thu Oct 11 11:02:02 2012
New Revision: 165716
URL: http://llvm.org/viewvc/llvm-project?rev=165716&view=rev
Log:
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.
Modified:
cfe/trunk/lib/AST/DeclObjC.cpp
Modified: cfe/trunk/lib/AST/DeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclObjC.cpp?rev=165716&r1=165715&r2=165716&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclObjC.cpp (original)
+++ cfe/trunk/lib/AST/DeclObjC.cpp Thu Oct 11 11:02:02 2012
@@ -904,7 +904,7 @@
if (NumArgs > 1)
return 0;
- if (getMethodFamily() != OMF_None)
+ if (!isInstanceMethod() || getMethodFamily() != OMF_None)
return 0;
if (isPropertyAccessor()) {
More information about the cfe-commits
mailing list