mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Remove unnecessary ModuleDecl parameter from GenericSignature::getSubstitutions()
This commit is contained in:
@@ -826,9 +826,8 @@ void SILGenFunction::emitCurryThunk(ValueDecl *vd,
|
||||
// Forward substitutions.
|
||||
ArrayRef<Substitution> subs;
|
||||
auto constantInfo = getConstantInfo(to);
|
||||
if (auto *env = constantInfo.GenericEnv) {
|
||||
subs = env->getForwardingSubstitutions(SGM.SwiftModule);
|
||||
}
|
||||
if (auto *env = constantInfo.GenericEnv)
|
||||
subs = env->getForwardingSubstitutions();
|
||||
|
||||
SILValue toFn = getNextUncurryLevelRef(*this, vd, to, from.isDirectReference,
|
||||
curriedArgs, subs);
|
||||
|
||||
Reference in New Issue
Block a user