diff options
| author | Craig Topper <craig.topper@gmail.com> | 2015-08-01 22:20:21 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2015-08-01 22:20:21 +0000 |
| commit | e3dcce9700c6f7045774f46f66faa610081495a5 (patch) | |
| tree | 10ddb2f805ad5ca46dc4279b77d6f34ef98c1564 /llvm/lib/Analysis/LoopAccessAnalysis.cpp | |
| parent | ede603057ebaa4db7bf034f78e96a8bb4b7fe8a5 (diff) | |
| download | llvm-e3dcce9700c6f7045774f46f66faa610081495a5.zip llvm-e3dcce9700c6f7045774f46f66faa610081495a5.tar.gz llvm-e3dcce9700c6f7045774f46f66faa610081495a5.tar.bz2 | |
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/LoopAccessAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 7e36a1b..e058e5a 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -830,11 +830,11 @@ static bool isNoWrapAddRec(Value *Ptr, const SCEVAddRecExpr *AR, /// \brief Check whether the access through \p Ptr has a constant stride. int llvm::isStridedPtr(ScalarEvolution *SE, Value *Ptr, const Loop *Lp, const ValueToValueMap &StridesMap) { - const Type *Ty = Ptr->getType(); + Type *Ty = Ptr->getType(); assert(Ty->isPointerTy() && "Unexpected non-ptr"); // Make sure that the pointer does not point to aggregate types. - const PointerType *PtrTy = cast<PointerType>(Ty); + auto *PtrTy = cast<PointerType>(Ty); if (PtrTy->getElementType()->isAggregateType()) { DEBUG(dbgs() << "LAA: Bad stride - Not a pointer to a scalar type" << *Ptr << "\n"); |
