Change (!list.size() == 0) to (!list.empty()). No functional change.
authorRichard Trieu <rtrieu@google.com>
Fri, 12 Oct 2012 17:57:35 +0000 (17:57 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 12 Oct 2012 17:57:35 +0000 (17:57 +0000)
llvm-svn: 165812

llvm/utils/TableGen/InstrInfoEmitter.cpp

index 4e97cf4..e447c16 100644 (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;