diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-28 02:25:34 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-28 02:25:34 +0000 |
commit | b2a6b0dbad676b93a17efcf2b4016239feaaa2f2 (patch) | |
tree | 23cfa6bea6ad903b840a238ca2cc4d5b4cf69f23 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | db8f19fb90fad2c37c255789357c656c14a36b2f (diff) | |
download | llvm-b2a6b0dbad676b93a17efcf2b4016239feaaa2f2.zip llvm-b2a6b0dbad676b93a17efcf2b4016239feaaa2f2.tar.gz llvm-b2a6b0dbad676b93a17efcf2b4016239feaaa2f2.tar.bz2 |
Clean up.
llvm-svn: 31957
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index bafdffb..7da1dca 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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; } |