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 | 6b712a7ba162e7aa1766832947ae63ce90db5f87 (patch) | |
| tree | 0f7de33b067699a3b164fcbe7d105487bcf5551f /clang/lib/AST | |
| parent | 49c81799b03561eeb394cb18075c54819ad9cfc6 (diff) | |
| download | bcm5719-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.cpp | 2 |
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); } |

