@@ -2767,7 +2767,7 @@ NamedDecl *transformTemplateParameter(Sema &SemaRef, DeclContext *DC,
2767
2767
if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(TemplateParam))
2768
2768
return transformTemplateParam (SemaRef, DC, NTTP, Args, NewIndex,
2769
2769
NTTP->getDepth ());
2770
- return nullptr ;
2770
+ llvm_unreachable ( " Unhandled template parameter types " ) ;
2771
2771
}
2772
2772
2773
2773
Expr *transformRequireClause (Sema &SemaRef, FunctionTemplateDecl *FTD,
@@ -3035,14 +3035,14 @@ void DeclareImplicitDeductionGuidesForTypeAlias(
3035
3035
}
3036
3036
3037
3037
// Build an aggregate deduction guide for a type alias template.
3038
- FunctionTemplateDecl *DeclareAggrecateDeductionGuideForTypeAlias (
3038
+ FunctionTemplateDecl *DeclareAggregateDeductionGuideForTypeAlias (
3039
3039
Sema &SemaRef, TypeAliasTemplateDecl *AliasTemplate,
3040
3040
MutableArrayRef<QualType> ParamTypes, SourceLocation Loc) {
3041
3041
TemplateDecl *RHSTemplate =
3042
3042
getRHSTemplateDeclAndArgs (SemaRef, AliasTemplate).first ;
3043
3043
if (!RHSTemplate)
3044
3044
return nullptr ;
3045
- auto *RHSDeductionGuide = SemaRef.DeclareImplicitDeductionGuideFromInitList (
3045
+ auto *RHSDeductionGuide = SemaRef.DeclareAggregateDeductionGuideFromInitList (
3046
3046
RHSTemplate, ParamTypes, Loc);
3047
3047
if (!RHSDeductionGuide)
3048
3048
return nullptr ;
@@ -3105,8 +3105,7 @@ FunctionTemplateDecl *DeclareAggrecateDeductionGuideForTypeAlias(
3105
3105
3106
3106
} // namespace
3107
3107
3108
- // FIXME: rename to DeclareAggrecateDeductionGuide.
3109
- FunctionTemplateDecl *Sema::DeclareImplicitDeductionGuideFromInitList (
3108
+ FunctionTemplateDecl *Sema::DeclareAggregateDeductionGuideFromInitList (
3110
3109
TemplateDecl *Template, MutableArrayRef<QualType> ParamTypes,
3111
3110
SourceLocation Loc) {
3112
3111
llvm::FoldingSetNodeID ID;
@@ -3122,7 +3121,7 @@ FunctionTemplateDecl *Sema::DeclareImplicitDeductionGuideFromInitList(
3122
3121
}
3123
3122
3124
3123
if (auto *AliasTemplate = llvm::dyn_cast<TypeAliasTemplateDecl>(Template)) {
3125
- if (auto *FTD = DeclareAggrecateDeductionGuideForTypeAlias (
3124
+ if (auto *FTD = DeclareAggregateDeductionGuideForTypeAlias (
3126
3125
*this , AliasTemplate, ParamTypes, Loc)) {
3127
3126
auto *GD = cast<CXXDeductionGuideDecl>(FTD->getTemplatedDecl ());
3128
3127
GD->setDeductionCandidateKind (DeductionCandidate::Aggregate);
0 commit comments