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/Sema/SemaExprCXX.cpp | |
| 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/Sema/SemaExprCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 3 |
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 |

