@@ -4501,15 +4501,15 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
45014501
45024502 // Deduce an argument of type ParamType from an expression with index ArgIdx.
45034503 auto DeduceCallArgument = [&](QualType ParamType, unsigned ArgIdx,
4504- bool ExplicitObjetArgument ) {
4504+ bool ExplicitObjectArgument ) {
45054505 // C++ [demp.deduct.call]p1: (DR1391)
45064506 // Template argument deduction is done by comparing each function template
45074507 // parameter that contains template-parameters that participate in
45084508 // template argument deduction ...
45094509 if (!hasDeducibleTemplateParameters (*this , FunctionTemplate, ParamType))
45104510 return TemplateDeductionResult::Success;
45114511
4512- if (ExplicitObjetArgument ) {
4512+ if (ExplicitObjectArgument ) {
45134513 // ... with the type of the corresponding argument
45144514 return DeduceTemplateArgumentsFromCallArgument (
45154515 *this , TemplateParams, FirstInnerIndex, ParamType, ObjectType,
@@ -4544,14 +4544,14 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
45444544
45454545 if (ParamIdx == 0 && HasExplicitObject) {
45464546 if (auto Result = DeduceCallArgument (ParamType, 0 ,
4547- /* ExplicitObjetArgument =*/ true );
4547+ /* ExplicitObjectArgument =*/ true );
45484548 Result != TemplateDeductionResult::Success)
45494549 return Result;
45504550 continue ;
45514551 }
45524552
45534553 if (auto Result = DeduceCallArgument (ParamType, ArgIdx++,
4554- /* ExplicitObjetArgument =*/ false );
4554+ /* ExplicitObjectArgument =*/ false );
45554555 Result != TemplateDeductionResult::Success)
45564556 return Result;
45574557
@@ -4586,7 +4586,7 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
45864586 PackScope.nextPackElement (), ++ArgIdx) {
45874587 ParamTypesForArgChecking.push_back (ParamPattern);
45884588 if (auto Result = DeduceCallArgument (ParamPattern, ArgIdx,
4589- /* ExplicitObjetArgument =*/ false );
4589+ /* ExplicitObjectArgument =*/ false );
45904590 Result != TemplateDeductionResult::Success)
45914591 return Result;
45924592 }
@@ -4626,8 +4626,9 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
46264626 unsigned PackArgEnd = ArgIdx + *ArgPosAfterSubstitution;
46274627 for (; ArgIdx < PackArgEnd && ArgIdx < Args.size (); ArgIdx++) {
46284628 ParamTypesForArgChecking.push_back (ParamPattern);
4629- if (auto Result = DeduceCallArgument (ParamPattern, ArgIdx,
4630- /* ExplicitObjetArgument=*/ false );
4629+ if (auto Result =
4630+ DeduceCallArgument (ParamPattern, ArgIdx,
4631+ /* ExplicitObjectArgument=*/ false );
46314632 Result != TemplateDeductionResult::Success)
46324633 return Result;
46334634
0 commit comments