Skip to content

Commit 9a3a2e0

Browse files
committed
Refine assertion
1 parent c4e792b commit 9a3a2e0

File tree

1 file changed

+1
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ class VPVectorEndPointerRecipe : public VPRecipeWithIRFlags,
17191719
: VPRecipeWithIRFlags(VPDef::VPVectorEndPointerSC,
17201720
ArrayRef<VPValue *>({Ptr, VF}), GEPFlags, DL),
17211721
IndexedTy(IndexedTy), Stride(Stride) {
1722-
assert(Stride != 0 && "Unexpected stride");
1722+
assert(Stride != 0 && "Stride cannot be zero");
17231723
}
17241724

17251725
VP_CLASSOF_IMPL(VPDef::VPVectorEndPointerSC)

0 commit comments

Comments
 (0)