Skip to content

Commit

Permalink
Fix MSVC signed/unsigned mismatch warning. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Dec 1, 2023
1 parent 8bea804 commit 6c5e967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/TargetInstrInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ bool TargetInstrInfo::hasLowDefLatency(const TargetSchedModel &SchedModel,
unsigned DefClass = DefMI.getDesc().getSchedClass();
std::optional<unsigned> DefCycle =
ItinData->getOperandCycle(DefClass, DefIdx);
return DefCycle <= 1;
return DefCycle <= 1U;
}

bool TargetInstrInfo::isFunctionSafeToSplit(const MachineFunction &MF) const {
Expand Down

0 comments on commit 6c5e967

Please sign in to comment.