summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-07-14 18:25:06 +0000
committerSteve Naroff <snaroff@apple.com>2009-07-14 18:25:06 +0000
commit6b712a7ba162e7aa1766832947ae63ce90db5f87 (patch)
tree0f7de33b067699a3b164fcbe7d105487bcf5551f /clang/lib/AST
parent49c81799b03561eeb394cb18075c54819ad9cfc6 (diff)
downloadbcm5719-llvm-6b712a7ba162e7aa1766832947ae63ce90db5f87.tar.gz
bcm5719-llvm-6b712a7ba162e7aa1766832947ae63ce90db5f87.zip
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. llvm-svn: 75650
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 971f2da0c05..13f35dc3a08 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud