commit | 6d4740e740f9c109c76c111cc90a63f6a24f6357 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Mon Oct 17 19:48:09 2011 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Mon Oct 17 19:48:09 2011 +0000 |
tree | 39f676aeaed87ad93091478e8aedc84236a33113 | |
parent | b05d7b20171bbd2feb14b059f39332cbe1bf1014 [diff] |
Have ObjCMethodDecl::getCanonicalDecl take into account redeclared methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142231 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index 5af3cf5..0481f9c 100644 --- a/lib/AST/DeclObjC.cpp +++ b/lib/AST/DeclObjC.cpp
@@ -452,6 +452,10 @@ return MD; } + if (isRedeclaration()) + return cast<ObjCContainerDecl>(CtxD)->getMethod(getSelector(), + isInstanceMethod()); + return this; }