De-constify pointers to Type since they can't be modified. NFC
[oota-llvm.git] / lib / Analysis / VectorUtils.cpp
index 67f68dc8391e19021b7ec9a67986e1f3e2a25585..1ebff0f7c056ced889e780881f6865b49cb0e5e1 100644 (file)
@@ -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;