mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Simplify SubstitutionMap::get()
This commit is contained in:
@@ -104,6 +104,15 @@ public:
|
||||
ArrayRef<Type> replacementTypes,
|
||||
LookupConformanceFn lookupConformance);
|
||||
|
||||
/// Build a substitution map from the substitutions represented by
|
||||
/// the given in-flight substitution.
|
||||
///
|
||||
/// This function should generally only be used by the substitution
|
||||
/// subsystem.
|
||||
static SubstitutionMap get(GenericSignature genericSig,
|
||||
ArrayRef<Type> replacementTypes,
|
||||
InFlightSubstitution &IFS);
|
||||
|
||||
/// Build a substitution map from the substitutions represented by
|
||||
/// the given in-flight substitution.
|
||||
///
|
||||
|
||||
@@ -998,9 +998,7 @@ case TypeKind::Id:
|
||||
return subs;
|
||||
|
||||
auto sig = subs.getGenericSignature();
|
||||
return SubstitutionMap::get(sig,
|
||||
QueryReplacementTypeArray{sig, newSubs},
|
||||
LookUpConformanceInModule());
|
||||
return SubstitutionMap::get(sig, newSubs, LookUpConformanceInModule());
|
||||
}
|
||||
|
||||
CanType transformSILField(CanType fieldTy, TypePosition pos) {
|
||||
|
||||
Reference in New Issue
Block a user