[llvm-commits] [llvm] r116119 - /llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp

Evan Cheng evan.cheng at apple.com
Fri Oct 8 16:01:57 PDT 2010


Author: evancheng
Date: Fri Oct  8 18:01:57 2010
New Revision: 116119

URL: http://llvm.org/viewvc/llvm-project?rev=116119&view=rev
Log:
Avoid compiler warning: comparison between signed and unsigned integer.

Modified:
    llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp

Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=116119&r1=116118&r2=116119&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Fri Oct  8 18:01:57 2010
@@ -529,7 +529,7 @@
   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>





More information about the llvm-commits mailing list