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/AST/ASTContext.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/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 971f2da0c0..13f35dc3a0 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -1088,7 +1088,7 @@ QualType ASTContext::getObjCGCQualType(QualType T, if (T->isPointerType()) { QualType Pointee = T->getAsPointerType()->getPointeeType(); - if (Pointee->isPointerType() || Pointee->isObjCObjectPointerType()) { + if (Pointee->isAnyPointerType()) { QualType ResultType = getObjCGCQualType(Pointee, GCAttr); return getPointerType(ResultType); } |