@@ -940,7 +940,7 @@ ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM,
940940 DependentSizedMatrixTypes(this_()),
941941 FunctionProtoTypes(this_(), FunctionProtoTypesLog2InitSize),
942942 DependentTypeOfExprTypes(this_()), DependentDecltypeTypes(this_()),
943- TemplateSpecializationTypes(this_()),
943+ DependentPackIndexingTypes(this_()), TemplateSpecializationTypes(this_()),
944944 DependentTemplateSpecializationTypes(this_()),
945945 DependentBitIntTypes(this_()), SubstTemplateTemplateParmPacks(this_()),
946946 DeducedTemplates(this_()), ArrayParameterTypes(this_()),
@@ -6438,17 +6438,17 @@ QualType ASTContext::getPackIndexingType(QualType Pattern, Expr *IndexExpr,
64386438 } else {
64396439 llvm::FoldingSetNodeID ID;
64406440 PackIndexingType::Profile(ID, *this, Pattern.getCanonicalType(), IndexExpr,
6441- FullySubstituted);
6441+ FullySubstituted, Expansions );
64426442 void *InsertPos = nullptr;
64436443 PackIndexingType *Canon =
64446444 DependentPackIndexingTypes.FindNodeOrInsertPos(ID, InsertPos);
64456445 if (!Canon) {
64466446 void *Mem = Allocate(
64476447 PackIndexingType::totalSizeToAlloc<QualType>(Expansions.size()),
64486448 TypeAlignment);
6449- Canon = new (Mem)
6450- PackIndexingType(*this, QualType(), Pattern.getCanonicalType(),
6451- IndexExpr, FullySubstituted, Expansions);
6449+ Canon =
6450+ new (Mem) PackIndexingType( QualType(), Pattern.getCanonicalType(),
6451+ IndexExpr, FullySubstituted, Expansions);
64526452 DependentPackIndexingTypes.InsertNode(Canon, InsertPos);
64536453 }
64546454 Canonical = QualType(Canon, 0);
@@ -6457,7 +6457,7 @@ QualType ASTContext::getPackIndexingType(QualType Pattern, Expr *IndexExpr,
64576457 void *Mem =
64586458 Allocate(PackIndexingType::totalSizeToAlloc<QualType>(Expansions.size()),
64596459 TypeAlignment);
6460- auto *T = new (Mem) PackIndexingType(*this, Canonical, Pattern, IndexExpr,
6460+ auto *T = new (Mem) PackIndexingType(Canonical, Pattern, IndexExpr,
64616461 FullySubstituted, Expansions);
64626462 Types.push_back(T);
64636463 return QualType(T, 0);
0 commit comments