summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2012-10-12 17:57:35 +0000
committerRichard Trieu <rtrieu@google.com>2012-10-12 17:57:35 +0000
commit2448969d7f67d690691cd6bd6fe25a3cc307928f (patch)
tree50957d2d3945e2c3afb16e0231328959b96974e7
parentf20d90582f72043e36ecd5c110fe9971de80fede (diff)
downloadbcm5719-llvm-2448969d7f67d690691cd6bd6fe25a3cc307928f.tar.gz
bcm5719-llvm-2448969d7f67d690691cd6bd6fe25a3cc307928f.zip
Change (!list.size() == 0) to (!list.empty()). No functional change.
llvm-svn: 165812
-rw-r--r--llvm/utils/TableGen/InstrInfoEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp
index 4e97cf4693b..e447c16b164 100644
--- a/llvm/utils/TableGen/InstrInfoEmitter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud