1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

InterleavedAccessInfo - Don't dereference a dyn_cast result. NFCI.

llvm-svn: 372117
This commit is contained in:
Simon Pilgrim 2019-09-17 13:25:56 +00:00
parent fa3fab8dc6
commit a3f824cd00

View File

@ -832,7 +832,7 @@ void InterleavedAccessInfo::collectConstStrideAccesses(
/*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.