Replace size method call of containers to empty method where appropriate
[oota-llvm.git] / lib / CodeGen / SelectionDAG / TargetLowering.cpp
index 72e0aca8408043a9739449a1946d74348f9c4986..a1f425eeac114833bda9ec30bcf1ac10602b206e 100644 (file)
@@ -2340,7 +2340,7 @@ TargetLowering::AsmOperandInfoVector TargetLowering::ParseConstraints(
   }
 
   // If we have multiple alternative constraints, select the best alternative.
-  if (ConstraintOperands.size()) {
+  if (!ConstraintOperands.empty()) {
     if (maCount) {
       unsigned bestMAIndex = 0;
       int bestWeight = -1;