Skip to content

Commit 55b13f1

Browse files
committed
[VPlan] Add assert
1 parent 41ce479 commit 55b13f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanUtils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ inline VPIRFlags getFlagsFromIndDesc(const InductionDescriptor &ID) {
9090
ID.getInductionBinOp()))
9191
return VPIRFlags::WrapFlagsTy(OBO->hasNoUnsignedWrap(),
9292
OBO->hasNoSignedWrap());
93+
94+
assert(ID.getKind() == InductionDescriptor::IK_IntInduction &&
95+
"Expected int induction");
9396
return VPIRFlags::WrapFlagsTy(false, false);
9497
}
9598
} // namespace vputils

0 commit comments

Comments
 (0)