Skip to content

Commit 161c6f5

Browse files
committed
Revert "Revert "AST: Re-enable TypeSubstituter::transformSubstitutionMap() again""
This reverts commit 47684cb.
1 parent 672135b commit 161c6f5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/AST/TypeSubstitution.cpp

Lines changed: 1 addition & 4 deletions
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,13 +474,10 @@ 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-
/*
479477
SubstitutionMap TypeSubstituter::transformSubstitutionMap(SubstitutionMap subs) {
480478
// FIXME: Take level into account? Move level down into IFS?
481479
return subs.subst(IFS);
482480
}
483-
*/
484481

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

0 commit comments

Comments
 (0)