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:
@@ -1964,8 +1964,7 @@ public:
|
||||
|
||||
// Map interface types to archetypes.
|
||||
if (auto *env = constantInfo.GenericEnv) {
|
||||
auto sig = constantInfo.SILFnType->getGenericSignature();
|
||||
auto subs = env->getForwardingSubstitutions(M, sig);
|
||||
auto subs = env->getForwardingSubstitutions(M);
|
||||
methodTy = methodTy->substGenericArgs(F.getModule(), M, subs);
|
||||
}
|
||||
assert(!methodTy->isPolymorphic());
|
||||
|
||||
Reference in New Issue
Block a user