Skip to content

Commit df2aae0

Browse files
author
Evan Cheng
committed
Avoid compiler warning: comparison between signed and unsigned integer.
llvm-svn: 116119
1 parent 73853e5 commit df2aae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/ScheduleDAGInstrs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ void ScheduleDAGInstrs::ComputeOperandLatency(SUnit *Def, SUnit *Use,
529529
if (DefIdx != -1) {
530530
const MachineOperand &MO = DefMI->getOperand(DefIdx);
531531
if (MO.isReg() && MO.isImplicit() &&
532-
DefIdx >= DefMI->getDesc().getNumOperands()) {
532+
DefIdx >= (int)DefMI->getDesc().getNumOperands()) {
533533
// This is an implicit def, getOperandLatency() won't return the correct
534534
// latency. e.g.
535535
// %D6<def>, %D7<def> = VLD1q16 %R2<kill>, 0, ..., %Q3<imp-def>

0 commit comments

Comments
 (0)