Skip to content

Commit 66e5910

Browse files
committed
SILCloner: Use SubstitutionMap::mapIntoTypeExpansionContext()
1 parent 08b2718 commit 66e5910

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
@@ -590,11 +590,7 @@ class SILCloner : protected SILInstructionVisitor<ImplClass> {
590590
!context.shouldLookThroughOpaqueTypeArchetypes())
591591
return Subs;
592592

593-
ReplaceOpaqueTypesWithUnderlyingTypes replacer(
594-
context.getContext(), context.getResilienceExpansion(),
595-
context.isWholeModuleContext());
596-
return Subs.subst(replacer, replacer,
597-
SubstFlags::SubstituteOpaqueArchetypes);
593+
return Subs.mapIntoTypeExpansionContext(context);
598594
}
599595

600596
return Subs;

0 commit comments

Comments
 (0)