Skip to content

Commit

Permalink
llvm/lib/CodeGen/TargetSchedule.cpp:132:12: warning: Assert statement…
Browse files Browse the repository at this point in the history
… modifies 'NIter' (llvm#90982)

Modified the assert statement
  • Loading branch information
akshaykumars614 authored May 4, 2024
1 parent 0d493ed commit 18d1df4
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 18d1df4

Please sign in to comment.