summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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/CodeGen
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/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp2
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);
OpenPOWER on IntegriCloud