From: Richard Trieu Date: Fri, 12 Oct 2012 17:57:35 +0000 (+0000) Subject: Change (!list.size() == 0) to (!list.empty()). No functional change. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=562892034651ee4e29c31d03e55e8b8576f56369;p=oota-llvm.git Change (!list.size() == 0) to (!list.empty()). No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165812 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp index 4e97cf4693b..e447c16b164 100644 --- a/utils/TableGen/InstrInfoEmitter.cpp +++ b/utils/TableGen/InstrInfoEmitter.cpp @@ -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;