From: Evan Cheng Date: Fri, 8 Oct 2010 23:01:57 +0000 (+0000) Subject: Avoid compiler warning: comparison between signed and unsigned integer. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d82de8341c99c1756624020000bd51a03a5f355c;p=oota-llvm.git Avoid compiler warning: comparison between signed and unsigned integer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116119 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp index c0fa9ddb46d..537561d2b7e 100644 --- a/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/lib/CodeGen/ScheduleDAGInstrs.cpp @@ -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, %D7 = VLD1q16 %R2, 0, ..., %Q3