forked from OSchip/llvm-project
InterleavedAccessInfo - Don't dereference a dyn_cast result. NFCI.
llvm-svn: 372117
This commit is contained in:
parent
a2719f38c1
commit
c52a7093df
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue