File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ Solution::computeSubstitutions(NullablePtr<ValueDecl> decl,
103
103
if (openedTypes == OpenedTypes.end ())
104
104
return SubstitutionMap ();
105
105
106
- TypeSubstitutionMap subs ;
106
+ SmallVector<Type, 4 > replacementTypes ;
107
107
for (const auto &opened : openedTypes->second ) {
108
108
auto type = getFixedType (opened.second );
109
109
if (opened.first ->isParameterPack ()) {
@@ -115,7 +115,7 @@ Solution::computeSubstitutions(NullablePtr<ValueDecl> decl,
115
115
} else if (!type->is <PackType>())
116
116
type = PackType::getSingletonPackExpansion (type);
117
117
}
118
- subs[opened. first ] = type;
118
+ replacementTypes. push_back ( type) ;
119
119
}
120
120
121
121
auto lookupConformanceFn =
@@ -141,7 +141,7 @@ Solution::computeSubstitutions(NullablePtr<ValueDecl> decl,
141
141
};
142
142
143
143
return SubstitutionMap::get (sig,
144
- QueryTypeSubstitutionMap{subs} ,
144
+ replacementTypes ,
145
145
lookupConformanceFn);
146
146
}
147
147
You can’t perform that action at this time.
0 commit comments