Clean up.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 28 Nov 2006 02:25:34 +0000 (02:25 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 28 Nov 2006 02:25:34 +0000 (02:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31957 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineInstr.cpp

index bafdffb6d4d6783463a54c6ec23678434c40c674..7da1dcae5c7020a4c7d1b88fbc02af217b7b59da 100644 (file)
@@ -139,9 +139,9 @@ MachineInstr *MachineInstr::removeFromParent() {
 /// OperandComplete - Return true if it's illegal to add a new operand
 ///
 bool MachineInstr::OperandsComplete() const {
-  int NumOperands = TargetInstrDescriptors[Opcode].numOperands;
+  unsigned short NumOperands = TargetInstrDescriptors[Opcode].numOperands;
   if ((TargetInstrDescriptors[Opcode].Flags & M_VARIABLE_OPS) == 0 &&
-      getNumOperands()-NumImplicitOps >= (unsigned)NumOperands)
+      getNumOperands()-NumImplicitOps >= NumOperands)
     return true;  // Broken: we have all the operands of this instruction!
   return false;
 }