[llvm] r372117 - InterleavedAccessInfo - Don't dereference a dyn_cast result. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 06:25:56 PDT 2019
Author: rksimon
Date: Tue Sep 17 06:25:56 2019
New Revision: 372117
URL: http://llvm.org/viewvc/llvm-project?rev=372117&view=rev
Log:
InterleavedAccessInfo - Don't dereference a dyn_cast result. NFCI.
Modified:
llvm/trunk/lib/Analysis/VectorUtils.cpp
Modified: llvm/trunk/lib/Analysis/VectorUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/VectorUtils.cpp?rev=372117&r1=372116&r2=372117&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/VectorUtils.cpp (original)
+++ llvm/trunk/lib/Analysis/VectorUtils.cpp Tue Sep 17 06:25:56 2019
@@ -832,7 +832,7 @@ void InterleavedAccessInfo::collectConst
/*Assume=*/true, /*ShouldCheckWrap=*/false);
const SCEV *Scev = replaceSymbolicStrideSCEV(PSE, Strides, Ptr);
- PointerType *PtrTy = dyn_cast<PointerType>(Ptr->getType());
+ PointerType *PtrTy = cast<PointerType>(Ptr->getType());
uint64_t Size = DL.getTypeAllocSize(PtrTy->getElementType());
// An alignment of 0 means target ABI alignment.
More information about the llvm-commits
mailing list