Skip to content

Commit d763b44

Browse files
committed
Refine assertion
1 parent 2587bc2 commit d763b44

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
@@ -1717,7 +1717,7 @@ class VPVectorEndPointerRecipe : public VPRecipeWithIRFlags,
17171717
: VPRecipeWithIRFlags(VPDef::VPVectorEndPointerSC,
17181718
ArrayRef<VPValue *>({Ptr, VF}), GEPFlags, DL),
17191719
IndexedTy(IndexedTy), Stride(Stride) {
1720-
assert(Stride != 0 && "Unexpected stride");
1720+
assert(Stride != 0 && "Stride cannot be zero");
17211721
}
17221722

17231723
VP_CLASSOF_IMPL(VPDef::VPVectorEndPointerSC)

0 commit comments

Comments
 (0)