diff options
Diffstat (limited to 'Sema/SemaDecl.cpp')
-rw-r--r-- | Sema/SemaDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index 232c5ba2e2..bb100c67ce 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -1760,8 +1760,8 @@ void Sema::ActOnFields(Scope* S, /// TODO: Handle protocol list; such as id<p1,p2> in type comparisons bool Sema:: MatchTwoMethodDeclarations(const ObjcMethodDecl *Method, const ObjcMethodDecl *PrevMethod) { - if (Method->getMethodType().getCanonicalType() != - PrevMethod->getMethodType().getCanonicalType()) + if (Method->getResultType().getCanonicalType() != + PrevMethod->getResultType().getCanonicalType()) return false; for (int i = 0; i < Method->getNumParams(); i++) { ParmVarDecl *ParamDecl = Method->getParamDecl(i); |