summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
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/Sema/SemaExprCXX.cpp
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/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index ac3afa8b755..144dc5095f8 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -1482,8 +1482,7 @@ QualType Sema::CXXCheckConditionalOperands(Expr *&Cond, Expr *&LHS, Expr *&RHS,
QualType Sema::FindCompositePointerType(Expr *&E1, Expr *&E2) {
assert(getLangOptions().CPlusPlus && "This function assumes C++");
QualType T1 = E1->getType(), T2 = E2->getType();
- if(!T1->isPointerType() && !T2->isPointerType() &&
- !T1->isObjCObjectPointerType() && !T2->isObjCObjectPointerType())
+ if(!T1->isAnyPointerType() && !T2->isAnyPointerType())
return QualType();
// C++0x 5.9p2
OpenPOWER on IntegriCloud