@@ -6977,7 +6977,7 @@ void Sema::AddOverloadCandidate(
69776977 Candidate.Viable = true;
69786978 Candidate.RewriteKind =
69796979 CandidateSet.getRewriteInfo().getRewriteKind(Function, PO);
6980- Candidate.IsADLCandidate = IsADLCandidate;
6980+ Candidate.IsADLCandidate = llvm::to_underlying( IsADLCandidate) ;
69816981 Candidate.ExplicitCallArguments = Args.size();
69826982
69836983 // Explicit functions are not actually candidates at all if we're not
@@ -7832,7 +7832,7 @@ void Sema::AddTemplateOverloadCandidate(
78327832 Candidate.RewriteKind =
78337833 CandidateSet.getRewriteInfo().getRewriteKind(Candidate.Function, PO);
78347834 Candidate.IsSurrogate = false;
7835- Candidate.IsADLCandidate = IsADLCandidate;
7835+ Candidate.IsADLCandidate = llvm::to_underlying( IsADLCandidate) ;
78367836 // Ignore the object argument if there is one, since we don't have an object
78377837 // type.
78387838 Candidate.IgnoreObjectArgument =
@@ -14082,7 +14082,8 @@ static ExprResult FinishOverloadedCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
1408214082 return ExprError();
1408314083 return SemaRef.BuildResolvedCallExpr(
1408414084 Res.get(), FDecl, LParenLoc, Args, RParenLoc, ExecConfig,
14085- /*IsExecConfig=*/false, (*Best)->IsADLCandidate);
14085+ /*IsExecConfig=*/false,
14086+ static_cast<CallExpr::ADLCallKind>((*Best)->IsADLCandidate));
1408614087 }
1408714088
1408814089 case OR_No_Viable_Function: {
@@ -14156,7 +14157,8 @@ static ExprResult FinishOverloadedCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
1415614157 return ExprError();
1415714158 return SemaRef.BuildResolvedCallExpr(
1415814159 Res.get(), FDecl, LParenLoc, Args, RParenLoc, ExecConfig,
14159- /*IsExecConfig=*/false, (*Best)->IsADLCandidate);
14160+ /*IsExecConfig=*/false,
14161+ static_cast<CallExpr::ADLCallKind>((*Best)->IsADLCandidate));
1416014162 }
1416114163 }
1416214164
@@ -14438,7 +14440,8 @@ Sema::CreateOverloadedUnaryOp(SourceLocation OpLoc, UnaryOperatorKind Opc,
1443814440 Args[0] = Input;
1443914441 CallExpr *TheCall = CXXOperatorCallExpr::Create(
1444014442 Context, Op, FnExpr.get(), ArgsArray, ResultTy, VK, OpLoc,
14441- CurFPFeatureOverrides(), Best->IsADLCandidate);
14443+ CurFPFeatureOverrides(),
14444+ static_cast<CallExpr::ADLCallKind>(Best->IsADLCandidate));
1444214445
1444314446 if (CheckCallReturnType(FnDecl->getReturnType(), OpLoc, TheCall, FnDecl))
1444414447 return ExprError();
@@ -14833,7 +14836,8 @@ ExprResult Sema::CreateOverloadedBinOp(SourceLocation OpLoc,
1483314836 // members; CodeGen should take care not to emit the this pointer.
1483414837 TheCall = CXXOperatorCallExpr::Create(
1483514838 Context, ChosenOp, FnExpr.get(), Args, ResultTy, VK, OpLoc,
14836- CurFPFeatureOverrides(), Best->IsADLCandidate);
14839+ CurFPFeatureOverrides(),
14840+ static_cast<CallExpr::ADLCallKind>(Best->IsADLCandidate));
1483714841
1483814842 if (const auto *Method = dyn_cast<CXXMethodDecl>(FnDecl);
1483914843 Method && Method->isImplicitObjectMemberFunction()) {
0 commit comments