Skip to content

Commit 3983da4

Browse files
committed
RequirementMachine: Fix compile error on Linux
1 parent 336fa00 commit 3983da4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/AST/RequirementMachine.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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 {
6262
CanType
6363
RewriteSystemBuilder::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

Comments
 (0)