diff options
author | Steve Naroff <snaroff@apple.com> | 2009-07-14 18:25:06 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-07-14 18:25:06 +0000 |
commit | 58f9f2c884af6b72d036b746a016d8031d31cb7a (patch) | |
tree | 89a7b1e5b8e5ba78419af5fb1f023c6e38f66dc0 /lib/Analysis/CheckObjCInstMethSignature.cpp | |
parent | d01c915dda27bb0045687f0a08bbcab1dd40e652 (diff) |
Introduce Type::isAnyPointerType() and convert all clients (suggested by Chris).
I don't love the name, however it simplifies the code and is a worthwhile change. If/when we come up with a better name, we can do a search/replace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CheckObjCInstMethSignature.cpp')
-rw-r--r-- | lib/Analysis/CheckObjCInstMethSignature.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/CheckObjCInstMethSignature.cpp b/lib/Analysis/CheckObjCInstMethSignature.cpp index c4e586d2e4..c208a7c323 100644 --- a/lib/Analysis/CheckObjCInstMethSignature.cpp +++ b/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); |