[llvm-commits] CVS: llvm/lib/CodeGen/MachineInstr.cpp

Evan Cheng evan.cheng at apple.com
Mon Nov 27 18:25:48 PST 2006



Changes in directory llvm/lib/CodeGen:

MachineInstr.cpp updated: 1.133 -> 1.134
---
Log message:

Clean up.

---
Diffs of the changes:  (+2 -2)

 MachineInstr.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/MachineInstr.cpp
diff -u llvm/lib/CodeGen/MachineInstr.cpp:1.133 llvm/lib/CodeGen/MachineInstr.cpp:1.134
--- llvm/lib/CodeGen/MachineInstr.cpp:1.133	Mon Nov 27 17:36:08 2006
+++ llvm/lib/CodeGen/MachineInstr.cpp	Mon Nov 27 20:25:34 2006
@@ -139,9 +139,9 @@
 /// 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;
 }






More information about the llvm-commits mailing list