AST: Remove unnecessary ModuleDecl parameter from GenericSignature::getSubstitutions()

This commit is contained in:
Slava Pestov
2016-12-22 09:43:14 -05:00
parent 12326013e3
commit caa7045ae5
17 changed files with 29 additions and 46 deletions

View File

@@ -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);