Minor API change. No change in functionality.

llvm-svn: 83022
This commit is contained in:
Fariborz Jahanian 2009-09-28 22:03:07 +00:00
parent f919bd6651
commit 9021fc7026
2 changed files with 2 additions and 2 deletions

View File

@ -3694,7 +3694,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType DeclType,
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;

View File

@ -2241,7 +2241,7 @@ Sema::AddOverloadCandidate(FunctionDecl *Function,
// 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 {