[cfe-commits] r142231 - /cfe/trunk/lib/AST/DeclObjC.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Mon Oct 17 12:48:09 PDT 2011
Author: akirtzidis
Date: Mon Oct 17 14:48:09 2011
New Revision: 142231
URL: http://llvm.org/viewvc/llvm-project?rev=142231&view=rev
Log:
Have ObjCMethodDecl::getCanonicalDecl take into account redeclared methods.
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=142231&r1=142230&r2=142231&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclObjC.cpp (original)
+++ cfe/trunk/lib/AST/DeclObjC.cpp Mon Oct 17 14:48:09 2011
@@ -452,6 +452,10 @@
return MD;
}
+ if (isRedeclaration())
+ return cast<ObjCContainerDecl>(CtxD)->getMethod(getSelector(),
+ isInstanceMethod());
+
return this;
}
More information about the cfe-commits
mailing list