mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] Teach *ApplyInst to traffic in SubstitutionMap.
Push SubstitutionMaps through most of SILGen and the SIL optimizers that involve the various *ApplyInsts.
This commit is contained in:
@@ -303,7 +303,7 @@ void SILGenFunction::emitCaptures(SILLocation loc,
|
||||
ManagedValue
|
||||
SILGenFunction::emitClosureValue(SILLocation loc, SILDeclRef constant,
|
||||
CanType expectedType,
|
||||
SubstitutionList subs) {
|
||||
SubstitutionMap subs) {
|
||||
auto closure = *constant.getAnyFunctionRef();
|
||||
auto captureInfo = closure.getCaptureInfo();
|
||||
auto loweredCaptureInfo = SGM.Types.getLoweredLocalCaptures(closure);
|
||||
@@ -326,7 +326,7 @@ SILGenFunction::emitClosureValue(SILLocation loc, SILDeclRef constant,
|
||||
// If we have a closure expression in generic context, Sema won't give
|
||||
// us substitutions, so we just use the forwarding substitutions from
|
||||
// context.
|
||||
subs = getForwardingSubstitutions();
|
||||
subs = getForwardingSubstitutionMap();
|
||||
}
|
||||
|
||||
bool wasSpecialized = false;
|
||||
|
||||
Reference in New Issue
Block a user