Avoid compiler warning: comparison between signed and unsigned integer.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 8 Oct 2010 23:01:57 +0000 (23:01 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 8 Oct 2010 23:01:57 +0000 (23:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116119 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ScheduleDAGInstrs.cpp

index c0fa9ddb46da5069ea2ba95ba2c92466f5e951a2..537561d2b7eca1fbc35f19d475b313934d7cfab3 100644 (file)
@@ -529,7 +529,7 @@ void ScheduleDAGInstrs::ComputeOperandLatency(SUnit *Def, SUnit *Use,
   if (DefIdx != -1) {
     const MachineOperand &MO = DefMI->getOperand(DefIdx);
     if (MO.isReg() && MO.isImplicit() &&
-        DefIdx >= DefMI->getDesc().getNumOperands()) {
+        DefIdx >= (int)DefMI->getDesc().getNumOperands()) {
       // This is an implicit def, getOperandLatency() won't return the correct
       // latency. e.g.
       //   %D6<def>, %D7<def> = VLD1q16 %R2<kill>, 0, ..., %Q3<imp-def>