@@ -39,7 +39,7 @@ struct RewriteSystemBuilder {
3939
4040 CanType getConcreteSubstitutionSchema (CanType concreteType,
4141 const ProtocolDecl *proto,
42- SmallVector <Term> &result);
42+ SmallVectorImpl <Term> &result);
4343
4444 RewriteSystemBuilder (RewriteContext &ctx, bool debug)
4545 : Context(ctx), Debug(debug) {}
@@ -62,7 +62,7 @@ struct RewriteSystemBuilder {
6262CanType
6363RewriteSystemBuilder::getConcreteSubstitutionSchema (CanType concreteType,
6464 const ProtocolDecl *proto,
65- SmallVector <Term> &result) {
65+ SmallVectorImpl <Term> &result) {
6666 if (!concreteType->hasTypeParameter ())
6767 return concreteType;
6868
@@ -172,7 +172,7 @@ void RewriteSystemBuilder::addRequirement(const Requirement &req,
172172 // T.[superclass: C<X, Y>] => T
173173 auto otherType = CanType (req.getSecondType ());
174174
175- SmallVector<Term> substitutions;
175+ SmallVector<Term, 1 > substitutions;
176176 otherType = getConcreteSubstitutionSchema (otherType, proto,
177177 substitutions);
178178
@@ -200,7 +200,7 @@ void RewriteSystemBuilder::addRequirement(const Requirement &req,
200200 // rewrite rule
201201 //
202202 // T.[concrete: C<X, Y>] => T
203- SmallVector<Term> substitutions;
203+ SmallVector<Term, 1 > substitutions;
204204 otherType = getConcreteSubstitutionSchema (otherType, proto,
205205 substitutions);
206206
0 commit comments