Minor API change. No change in functionality.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83022 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index 1c54159..f2dfe36 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -3694,7 +3694,7 @@
if (badConversion) {
if ((Conversions.ConversionKind ==
ImplicitConversionSequence::BadConversion)
- && Conversions.ConversionFunctionSet.size() > 0) {
+ && !Conversions.ConversionFunctionSet.empty()) {
Diag(DeclLoc,
diag::err_lvalue_to_rvalue_ambig_ref) << Init->getSourceRange();
for (int j = Conversions.ConversionFunctionSet.size()-1;
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp
index 885f59c..42f3511 100644
--- a/lib/Sema/SemaOverload.cpp
+++ b/lib/Sema/SemaOverload.cpp
@@ -2241,7 +2241,7 @@
// ranking implicit conversion sequences as described in 13.3.3.2, the ambiguous
// conversion sequence is treated as a user-defined sequence that is
// indistinguishable from any other user-defined conversion sequence
- if (Candidate.Conversions[ArgIdx].ConversionFunctionSet.size() > 0)
+ if (!Candidate.Conversions[ArgIdx].ConversionFunctionSet.empty())
Candidate.Conversions[ArgIdx].ConversionKind =
ImplicitConversionSequence::UserDefinedConversion;
else {