From 3ea033d82cd620f4ae4383a9d23ffb5f0d4fedcb Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 17 Sep 2019 13:25:56 +0000 Subject: [PATCH] InterleavedAccessInfo - Don't dereference a dyn_cast result. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372117 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/VectorUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/VectorUtils.cpp b/lib/Analysis/VectorUtils.cpp index 3edb0322c10..f54794c59e3 100644 --- a/lib/Analysis/VectorUtils.cpp +++ b/lib/Analysis/VectorUtils.cpp @@ -832,7 +832,7 @@ void InterleavedAccessInfo::collectConstStrideAccesses( /*Assume=*/true, /*ShouldCheckWrap=*/false); const SCEV *Scev = replaceSymbolicStrideSCEV(PSE, Strides, Ptr); - PointerType *PtrTy = dyn_cast(Ptr->getType()); + PointerType *PtrTy = cast(Ptr->getType()); uint64_t Size = DL.getTypeAllocSize(PtrTy->getElementType()); // An alignment of 0 means target ABI alignment. -- 2.40.0