@@ -940,7 +940,7 @@ ASTContext::ASTContext(LangOptions &LOpts, SourceManager &SM,
940
940
DependentSizedMatrixTypes(this_()),
941
941
FunctionProtoTypes(this_(), FunctionProtoTypesLog2InitSize),
942
942
DependentTypeOfExprTypes(this_()), DependentDecltypeTypes(this_()),
943
- TemplateSpecializationTypes(this_()),
943
+ DependentPackIndexingTypes(this_()), TemplateSpecializationTypes(this_()),
944
944
DependentTemplateSpecializationTypes(this_()),
945
945
DependentBitIntTypes(this_()), SubstTemplateTemplateParmPacks(this_()),
946
946
DeducedTemplates(this_()), ArrayParameterTypes(this_()),
@@ -6438,17 +6438,17 @@ QualType ASTContext::getPackIndexingType(QualType Pattern, Expr *IndexExpr,
6438
6438
} else {
6439
6439
llvm::FoldingSetNodeID ID;
6440
6440
PackIndexingType::Profile(ID, *this, Pattern.getCanonicalType(), IndexExpr,
6441
- FullySubstituted);
6441
+ FullySubstituted, Expansions );
6442
6442
void *InsertPos = nullptr;
6443
6443
PackIndexingType *Canon =
6444
6444
DependentPackIndexingTypes.FindNodeOrInsertPos(ID, InsertPos);
6445
6445
if (!Canon) {
6446
6446
void *Mem = Allocate(
6447
6447
PackIndexingType::totalSizeToAlloc<QualType>(Expansions.size()),
6448
6448
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);
6452
6452
DependentPackIndexingTypes.InsertNode(Canon, InsertPos);
6453
6453
}
6454
6454
Canonical = QualType(Canon, 0);
@@ -6457,7 +6457,7 @@ QualType ASTContext::getPackIndexingType(QualType Pattern, Expr *IndexExpr,
6457
6457
void *Mem =
6458
6458
Allocate(PackIndexingType::totalSizeToAlloc<QualType>(Expansions.size()),
6459
6459
TypeAlignment);
6460
- auto *T = new (Mem) PackIndexingType(*this, Canonical, Pattern, IndexExpr,
6460
+ auto *T = new (Mem) PackIndexingType(Canonical, Pattern, IndexExpr,
6461
6461
FullySubstituted, Expansions);
6462
6462
Types.push_back(T);
6463
6463
return QualType(T, 0);
0 commit comments