aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-11-28 02:25:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-11-28 02:25:34 +0000
commit8bcb042f22f06d034f18aee8cb5dd0a04745fd97 (patch)
tree51131927269666317349cc8fbe90dc4b47836da7 /lib/CodeGen/MachineInstr.cpp
parentafed8142b713e4c0c741731d04817c422e78dc94 (diff)
Clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r--lib/CodeGen/MachineInstr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index bafdffb6d4..7da1dcae5c 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -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;
}