Skip to content

Commit 47684cb

Browse files
committed
Revert "AST: Re-enable TypeSubstituter::transformSubstitutionMap() again"
This reverts commit 81bf449.
1 parent 1a7a88b commit 47684cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/AST/TypeSubstitution.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ class TypeSubstituter : public TypeTransform<TypeSubstituter> {
358358
std::optional<Type> transformLocalArchetypeType(LocalArchetypeType *local,
359359
TypePosition pos);
360360

361-
SubstitutionMap transformSubstitutionMap(SubstitutionMap subs);
361+
// SubstitutionMap transformSubstitutionMap(SubstitutionMap subs);
362362

363363
CanType transformSILField(CanType fieldTy, TypePosition pos);
364364
};
@@ -474,10 +474,13 @@ Type TypeSubstituter::transformDependentMemberType(DependentMemberType *dependen
474474
return result;
475475
}
476476

477+
// FIXME: This exposes a scalability issue; see test/SILGen/opaque_result_type_slow.swift.
478+
/*
477479
SubstitutionMap TypeSubstituter::transformSubstitutionMap(SubstitutionMap subs) {
478480
// FIXME: Take level into account? Move level down into IFS?
479481
return subs.subst(IFS);
480482
}
483+
*/
481484

482485
CanType TypeSubstituter::transformSILField(CanType fieldTy, TypePosition pos) {
483486
// Type substitution does not walk into the SILBoxType's field types, because

0 commit comments

Comments
 (0)