From 271e3a4d472e67ced92eb5972a7ec612686857ec Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Thu, 27 Aug 2009 17:30:43 +0000 Subject: Remove more default arguments. llvm-svn: 80260 --- clang/lib/Sema/SemaExprCXX.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'clang/lib/Sema/SemaExprCXX.cpp') diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index 98b3d29e531..55417c77d65 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -1201,7 +1201,10 @@ static bool TryClassUnification(Sema &Self, Expr *From, Expr *To, // conversion the reference must bind directly to E1. if (!Self.CheckReferenceInit(From, Self.Context.getLValueReferenceType(To->getType()), - &ICS)) + /*SuppressUserConversions=*/false, + /*AllowExplicit=*/false, + /*ForceRValue=*/false, + &ICS)) { assert((ICS.ConversionKind == ImplicitConversionSequence::StandardConversion || @@ -1317,14 +1320,20 @@ static bool ConvertForConditional(Sema &Self, Expr *&E, // FIXME: CheckReferenceInit should be able to reuse the ICS instead of // redoing all the work. return Self.CheckReferenceInit(E, Self.Context.getLValueReferenceType( - TargetType(ICS))); + TargetType(ICS)), + /*SuppressUserConversions=*/false, + /*AllowExplicit=*/false, + /*ForceRValue=*/false); } if (ICS.ConversionKind == ImplicitConversionSequence::UserDefinedConversion && ICS.UserDefined.After.ReferenceBinding) { assert(ICS.UserDefined.After.DirectBinding && "TryClassUnification should never generate indirect ref bindings"); return Self.CheckReferenceInit(E, Self.Context.getLValueReferenceType( - TargetType(ICS))); + TargetType(ICS)), + /*SuppressUserConversions=*/false, + /*AllowExplicit=*/false, + /*ForceRValue=*/false); } if (Self.PerformImplicitConversion(E, TargetType(ICS), ICS, "converting")) return true; -- cgit v1.2.3