Change (!list.size() == 0) to (!list.empty()). No functional change.

llvm-svn: 165812
This commit is contained in:
Richard Trieu 2012-10-12 17:57:35 +00:00
parent f20d90582f
commit 2448969d7f

View File

@ -299,7 +299,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
const OperandInfoMapTy &OpInfo,
raw_ostream &OS) {
int MinOperands = 0;
if (!Inst.Operands.size() == 0)
if (!Inst.Operands.empty())
// Each logical operand can be multiple MI operands.
MinOperands = Inst.Operands.back().MIOperandNo +
Inst.Operands.back().MINumOperands;