Minor API change. No change in functionality.
llvm-svn: 83022
This commit is contained in:
parent
f919bd6651
commit
9021fc7026
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue