File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -1617,12 +1617,6 @@ class NameAliasType final
1617
1617
return getNumSubstitutions ();
1618
1618
}
1619
1619
1620
- // / Retrieve the set of substitutions to be applied to the declaration to
1621
- // / produce the underlying type.
1622
- SubstitutionList getSubstitutionList () const {
1623
- return {getTrailingObjects<Substitution>(), getNumSubstitutions ()};
1624
- }
1625
-
1626
1620
// / Retrieve the generic signature used for substitutions.
1627
1621
GenericSignature *getGenericSignature () const {
1628
1622
return getNumSubstitutions () > 0
@@ -1648,6 +1642,12 @@ class NameAliasType final
1648
1642
: Type ();
1649
1643
}
1650
1644
1645
+ // / Retrieve the set of substitutions to be applied to the declaration to
1646
+ // / produce the underlying type.
1647
+ SubstitutionList getSubstitutionList () const {
1648
+ return {getTrailingObjects<Substitution>(), getNumSubstitutions ()};
1649
+ }
1650
+
1651
1651
// / Retrieve the substitution map applied to the declaration's underlying
1652
1652
// / to produce the described type.
1653
1653
SubstitutionMap getSubstitutionMap () const ;
Original file line number Diff line number Diff line change @@ -3631,10 +3631,7 @@ void Serializer::writeType(Type ty) {
3631
3631
addTypeRef (alias->getParent ()),
3632
3632
addTypeRef (alias->getSinglyDesugaredType ()));
3633
3633
// Write the set of substitutions.
3634
- SmallVector<Substitution, 4 > flatSubs;
3635
- if (auto genericSig = typeAlias->getGenericSignature ())
3636
- genericSig->getSubstitutions (alias->getSubstitutionMap (), flatSubs);
3637
- writeSubstitutions (flatSubs, DeclTypeAbbrCodes);
3634
+ writeSubstitutions (alias->getSubstitutionList (), DeclTypeAbbrCodes);
3638
3635
break ;
3639
3636
}
3640
3637
You can’t perform that action at this time.
0 commit comments