Skip to content

Commit d7107ad

Browse files
committed
SILCloner: Use SubstitutionMap::mapIntoTypeExpansionContext()
1 parent 95cd8ed commit d7107ad

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

include/swift/SIL/SILCloner.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -596,11 +596,7 @@ class SILCloner : protected SILInstructionVisitor<ImplClass> {
596596
!context.shouldLookThroughOpaqueTypeArchetypes())
597597
return Subs;
598598

599-
ReplaceOpaqueTypesWithUnderlyingTypes replacer(
600-
context.getContext(), context.getResilienceExpansion(),
601-
context.isWholeModuleContext());
602-
return Subs.subst(replacer, replacer,
603-
SubstFlags::SubstituteOpaqueArchetypes);
599+
return Subs.mapIntoTypeExpansionContext(context);
604600
}
605601

606602
return Subs;

0 commit comments

Comments
 (0)