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 =
@@ -145,7 +145,7 @@ Solution::computeSubstitutions(NullablePtr<ValueDecl> decl,
145
145
};
146
146
147
147
return SubstitutionMap::get (sig,
148
- QueryTypeSubstitutionMap{subs} ,
148
+ replacementTypes ,
149
149
lookupConformanceFn);
150
150
}
151
151
You can’t perform that action at this time.
0 commit comments