Skip to content

Commit 6c5e967

Browse files
committed
Fix MSVC signed/unsigned mismatch warning. NFC.
1 parent 8bea804 commit 6c5e967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/TargetInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ bool TargetInstrInfo::hasLowDefLatency(const TargetSchedModel &SchedModel,
14631463
unsigned DefClass = DefMI.getDesc().getSchedClass();
14641464
std::optional<unsigned> DefCycle =
14651465
ItinData->getOperandCycle(DefClass, DefIdx);
1466-
return DefCycle <= 1;
1466+
return DefCycle <= 1U;
14671467
}
14681468

14691469
bool TargetInstrInfo::isFunctionSafeToSplit(const MachineFunction &MF) const {

0 commit comments

Comments
 (0)