mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Eliminate ModuleDecl parameters from GenericSignature.
This commit is contained in:
@@ -715,8 +715,7 @@ ReabstractionInfo::createSubstitutedType(SILFunction *OrigF,
|
||||
// account by the substGenericArgs. So, canonicalize in the context of the
|
||||
// specialized signature.
|
||||
FnTy = cast<SILFunctionType>(
|
||||
CanSpecializedGenericSig->getCanonicalTypeInContext(
|
||||
FnTy, *M.getSwiftModule()));
|
||||
CanSpecializedGenericSig->getCanonicalTypeInContext(FnTy));
|
||||
}
|
||||
assert(FnTy);
|
||||
|
||||
@@ -1345,7 +1344,7 @@ void FunctionSignaturePartialSpecializer::
|
||||
for (auto GP : CalleeGenericSig->getGenericParams()) {
|
||||
auto CanTy = GP->getCanonicalType();
|
||||
auto CanTyInContext =
|
||||
CalleeGenericSig->getCanonicalTypeInContext(CanTy, *SM);
|
||||
CalleeGenericSig->getCanonicalTypeInContext(CanTy);
|
||||
auto Replacement = CanTyInContext.subst(CalleeInterfaceToCallerArchetypeMap);
|
||||
DEBUG(llvm::dbgs() << "\n\nChecking callee generic parameter:\n";
|
||||
CanTy->dump());
|
||||
|
||||
Reference in New Issue
Block a user