Skip to content

Commit 49213b1

Browse files
authored
Fix Candidataes typo (#6169)
1 parent 2ee2b2f commit 49213b1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

toolchain/check/cpp/overload_resolution.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ static auto GetCppName(Context& context, SemIR::NameId name_id)
3333
}
3434

3535
// Adds the given overload candidates to the candidate set.
36-
static auto AddOverloadCandidataes(clang::Sema& sema,
37-
clang::OverloadCandidateSet& candidate_set,
38-
const clang::UnresolvedSetImpl& functions,
39-
clang::Expr* self_arg,
40-
llvm::ArrayRef<clang::Expr*> args) -> void {
36+
static auto AddOverloadCandidates(clang::Sema& sema,
37+
clang::OverloadCandidateSet& candidate_set,
38+
const clang::UnresolvedSetImpl& functions,
39+
clang::Expr* self_arg,
40+
llvm::ArrayRef<clang::Expr*> args) -> void {
4141
constexpr bool SuppressUserConversions = false;
4242
constexpr bool PartialOverloading = false;
4343
constexpr clang::TemplateArgumentListInfo* ExplicitTemplateArgs = nullptr;
@@ -153,8 +153,8 @@ auto PerformCppOverloadResolution(Context& context, SemIR::LocId loc_id,
153153

154154
clang::Sema& sema = context.clang_sema();
155155

156-
AddOverloadCandidataes(sema, candidate_set, overload_set.candidate_functions,
157-
self_expr, arg_exprs);
156+
AddOverloadCandidates(sema, candidate_set, overload_set.candidate_functions,
157+
self_expr, arg_exprs);
158158

159159
// Find best viable function among the candidates.
160160
clang::OverloadCandidateSet::iterator best_viable_fn;

0 commit comments

Comments
 (0)