@@ -2840,7 +2840,7 @@ class OpaqueTypeDecl final :
28402840 // / expressed as a SubstitutionMap for the opaque interface generic signature.
28412841 // / This maps types in the interface generic signature to the outer generic
28422842 // / signature of the original declaration.
2843- Optional<SubstitutionMap> UnderlyingTypeSubstitutions ;
2843+ Optional<SubstitutionMap> UniqueUnderlyingType ;
28442844
28452845 // / A set of substitutions which are used based on the availability
28462846 // / checks performed at runtime. This set of only populated if there
@@ -2922,16 +2922,16 @@ class OpaqueTypeDecl final :
29222922 }
29232923
29242924 // / The substitutions that map the generic parameters of the opaque type to
2925- // / their underlying types, when that information is known.
2926- Optional<SubstitutionMap> getUnderlyingTypeSubstitutions () const {
2927- return UnderlyingTypeSubstitutions ;
2925+ // / the unique underlying types, when that information is known.
2926+ Optional<SubstitutionMap> getUniqueUnderlyingTypeSubstitutions () const {
2927+ return UniqueUnderlyingType ;
29282928 }
29292929
2930- void setUnderlyingTypeSubstitutions (SubstitutionMap subs) {
2931- assert (!UnderlyingTypeSubstitutions .hasValue () && " resetting underlying type?!" );
2932- UnderlyingTypeSubstitutions = subs;
2930+ void setUniqueUnderlyingTypeSubstitutions (SubstitutionMap subs) {
2931+ assert (!UniqueUnderlyingType .hasValue () && " resetting underlying type?!" );
2932+ UniqueUnderlyingType = subs;
29332933 }
2934- t
2934+
29352935 void setConditionallyAvailableSubstitutions (
29362936 ArrayRef<ConditionallyAvailableSubstitutions *> substitutions) {
29372937 assert (!ConditionallyAvailableTypes &&
0 commit comments