Replace size method call of containers to empty method where appropriate
[oota-llvm.git] / utils / TableGen / X86RecognizableInstr.cpp
index 198ad1090493b763d98c69c918a644b5d7c223f6..b4f62070f4b7c28d396060ee7881380cbfb92730 100644 (file)
@@ -514,7 +514,7 @@ void RecognizableInstr::emitInstructionSpecifier() {
   assert(numOperands <= X86_MAX_OPERANDS && "X86_MAX_OPERANDS is not large enough");
 
   for (unsigned operandIndex = 0; operandIndex < numOperands; ++operandIndex) {
-    if (OperandList[operandIndex].Constraints.size()) {
+    if (!OperandList[operandIndex].Constraints.empty()) {
       const CGIOperandList::ConstraintInfo &Constraint =
         OperandList[operandIndex].Constraints[0];
       if (Constraint.isTied()) {