mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Remove GenericSignature params from GenericEnvironment methods.
The GenericEnvironment stores a signature internally.
This commit is contained in:
@@ -815,8 +815,7 @@ void SILGenFunction::emitCurryThunk(ValueDecl *vd,
|
||||
ArrayRef<Substitution> subs;
|
||||
auto constantInfo = getConstantInfo(to);
|
||||
if (auto *env = constantInfo.GenericEnv) {
|
||||
auto sig = constantInfo.SILFnType->getGenericSignature();
|
||||
subs = env->getForwardingSubstitutions(SGM.SwiftModule, sig);
|
||||
subs = env->getForwardingSubstitutions(SGM.SwiftModule);
|
||||
}
|
||||
|
||||
SILValue toFn = getNextUncurryLevelRef(*this, vd, to, from.isDirectReference,
|
||||
|
||||
Reference in New Issue
Block a user