Skip to content

Commit

Permalink
https://github.com/llvm/llvm-project/issues/90328
Browse files Browse the repository at this point in the history
Modified the assert statement
  • Loading branch information
akshaykumars614 committed May 3, 2024
1 parent 2755c69 commit 20ecb06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/CodeGen/TargetSchedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ resolveSchedClass(const MachineInstr *MI) const {
unsigned NIter = 0;
#endif
while (SCDesc->isVariant()) {
assert(++NIter < 6 && "Variants are nested deeper than the magic number");
++NIter;
assert(NIter < 6 && "Variants are nested deeper than the magic number");

SchedClass = STI->resolveSchedClass(SchedClass, MI, this);
SCDesc = SchedModel.getSchedClassDesc(SchedClass);
Expand Down

0 comments on commit 20ecb06

Please sign in to comment.