@@ -39,7 +39,7 @@ struct RewriteSystemBuilder {
39
39
40
40
CanType getConcreteSubstitutionSchema (CanType concreteType,
41
41
const ProtocolDecl *proto,
42
- SmallVector <Term> &result);
42
+ SmallVectorImpl <Term> &result);
43
43
44
44
RewriteSystemBuilder (RewriteContext &ctx, bool debug)
45
45
: Context(ctx), Debug(debug) {}
@@ -62,7 +62,7 @@ struct RewriteSystemBuilder {
62
62
CanType
63
63
RewriteSystemBuilder::getConcreteSubstitutionSchema (CanType concreteType,
64
64
const ProtocolDecl *proto,
65
- SmallVector <Term> &result) {
65
+ SmallVectorImpl <Term> &result) {
66
66
if (!concreteType->hasTypeParameter ())
67
67
return concreteType;
68
68
@@ -172,7 +172,7 @@ void RewriteSystemBuilder::addRequirement(const Requirement &req,
172
172
// T.[superclass: C<X, Y>] => T
173
173
auto otherType = CanType (req.getSecondType ());
174
174
175
- SmallVector<Term> substitutions;
175
+ SmallVector<Term, 1 > substitutions;
176
176
otherType = getConcreteSubstitutionSchema (otherType, proto,
177
177
substitutions);
178
178
@@ -200,7 +200,7 @@ void RewriteSystemBuilder::addRequirement(const Requirement &req,
200
200
// rewrite rule
201
201
//
202
202
// T.[concrete: C<X, Y>] => T
203
- SmallVector<Term> substitutions;
203
+ SmallVector<Term, 1 > substitutions;
204
204
otherType = getConcreteSubstitutionSchema (otherType, proto,
205
205
substitutions);
206
206
0 commit comments