forked from OSchip/llvm-project
Have ObjCMethodDecl::getCanonicalDecl take into account redeclared methods.
llvm-svn: 142231
This commit is contained in:
parent
1f4bee5601
commit
690dccd9d4
|
@ -452,6 +452,10 @@ ObjCMethodDecl *ObjCMethodDecl::getCanonicalDecl() {
|
|||
return MD;
|
||||
}
|
||||
|
||||
if (isRedeclaration())
|
||||
return cast<ObjCContainerDecl>(CtxD)->getMethod(getSelector(),
|
||||
isInstanceMethod());
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue