diff options
Diffstat (limited to 'clang/lib/Analysis/CheckObjCInstMethSignature.cpp')
| -rw-r--r-- | clang/lib/Analysis/CheckObjCInstMethSignature.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CheckObjCInstMethSignature.cpp b/clang/lib/Analysis/CheckObjCInstMethSignature.cpp index c4e586d2e49..c208a7c323e 100644 --- a/clang/lib/Analysis/CheckObjCInstMethSignature.cpp +++ b/clang/lib/Analysis/CheckObjCInstMethSignature.cpp @@ -30,8 +30,7 @@ static bool AreTypesCompatible(QualType Derived, QualType Ancestor, // Right now don't compare the compatibility of pointers. That involves // looking at subtyping relationships. FIXME: Future patch. - if ((Derived->isPointerType() || Derived->isObjCObjectPointerType()) && - (Ancestor->isPointerType() || Ancestor->isObjCObjectPointerType())) + if (Derived->isAnyPointerType() && Ancestor->isAnyPointerType()) return true; return C.typesAreCompatible(Derived, Ancestor); |

