summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-07-09 07:04:00 +0000
committerCraig Topper <craig.topper@intel.com>2017-07-09 07:04:00 +0000
commit95d2347ae16335aa30139c0aa6c050ac3dce2ad7 (patch)
tree71608010c6bade75672bf4fc719fc11779b8751a /llvm/lib/Analysis/ValueTracking.cpp
parenta809f28956fabc28d29103aada5f72cf847efe91 (diff)
downloadbcm5719-llvm-95d2347ae16335aa30139c0aa6c050ac3dce2ad7.tar.gz
bcm5719-llvm-95d2347ae16335aa30139c0aa6c050ac3dce2ad7.zip
[IR] Make use of Type::isPtrOrPtrVectorTy/isIntOrIntVectorTy/isFPOrFPVectorTy to shorten code. NFC
llvm-svn: 307491
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 5285fa5b98d..922e2e6c990 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -1501,7 +1501,7 @@ void computeKnownBits(const Value *V, KnownBits &Known, unsigned Depth,
unsigned BitWidth = Known.getBitWidth();
assert((V->getType()->isIntOrIntVectorTy() ||
- V->getType()->getScalarType()->isPointerTy()) &&
+ V->getType()->isPtrOrPtrVectorTy()) &&
"Not integer or pointer type!");
assert((Q.DL.getTypeSizeInBits(V->getType()->getScalarType()) == BitWidth) &&
(!V->getType()->isIntOrIntVectorTy() ||
OpenPOWER on IntegriCloud