[AST] Remove GenericSignature params from GenericEnvironment methods.

The GenericEnvironment stores a signature internally.
This commit is contained in:
Huon Wilson
2016-11-01 18:36:03 -07:00
parent 1102cf6643
commit 5a08879d06
10 changed files with 13 additions and 29 deletions

View File

@@ -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,