summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/VectorUtils.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-08-01 22:20:21 +0000
committerCraig Topper <craig.topper@gmail.com>2015-08-01 22:20:21 +0000
commite3dcce9700c6f7045774f46f66faa610081495a5 (patch)
tree10ddb2f805ad5ca46dc4279b77d6f34ef98c1564 /llvm/lib/Analysis/VectorUtils.cpp
parentede603057ebaa4db7bf034f78e96a8bb4b7fe8a5 (diff)
downloadbcm5719-llvm-e3dcce9700c6f7045774f46f66faa610081495a5.tar.gz
bcm5719-llvm-e3dcce9700c6f7045774f46f66faa610081495a5.zip
De-constify pointers to Type since they can't be modified. NFC
This was already done in most places a while ago. This just fixes the ones that crept in over time. llvm-svn: 243842
Diffstat (limited to 'llvm/lib/Analysis/VectorUtils.cpp')
-rw-r--r--llvm/lib/Analysis/VectorUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp
index 67f68dc8391..1ebff0f7c05 100644
--- a/llvm/lib/Analysis/VectorUtils.cpp
+++ b/llvm/lib/Analysis/VectorUtils.cpp
@@ -283,7 +283,7 @@ llvm::Value *llvm::getUniqueCastUse(llvm::Value *Ptr, Loop *Lp, Type *Ty) {
/// strides "a[i*stride]". Returns the symbolic stride, or null otherwise.
llvm::Value *llvm::getStrideFromPointer(llvm::Value *Ptr, ScalarEvolution *SE,
Loop *Lp) {
- const PointerType *PtrTy = dyn_cast<PointerType>(Ptr->getType());
+ auto *PtrTy = dyn_cast<PointerType>(Ptr->getType());
if (!PtrTy || PtrTy->isAggregateType())
return nullptr;
OpenPOWER on IntegriCloud