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/CodeGen | |
| 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/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 17d2c13ff3a..14c4ac64f03 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -986,7 +986,7 @@ Value *ScalarExprEmitter::EmitOverflowCheckedBinOp(const BinOpInfo &Ops) { } Value *ScalarExprEmitter::EmitAdd(const BinOpInfo &Ops) { - if (!Ops.Ty->isPointerType() && !Ops.Ty->isObjCObjectPointerType()) { + if (!Ops.Ty->isAnyPointerType()) { if (CGF.getContext().getLangOptions().OverflowChecking && Ops.Ty->isSignedIntegerType()) return EmitOverflowCheckedBinOp(Ops); |

