@@ -381,43 +381,45 @@ class Constraint final : public llvm::ilist_node<Constraint>,
381
381
void *operator new (size_t ) = delete ;
382
382
383
383
Constraint (ConstraintKind kind, ArrayRef<Constraint *> constraints,
384
- ConstraintLocator *locator, ArrayRef<TypeVariableType *> typeVars);
384
+ ConstraintLocator *locator,
385
+ SmallPtrSetImpl<TypeVariableType *> &typeVars);
385
386
386
387
// / Construct a new constraint.
387
388
Constraint (ConstraintKind kind, Type first, Type second,
388
389
ConstraintLocator *locator,
389
- ArrayRef <TypeVariableType *> typeVars);
390
+ SmallPtrSetImpl <TypeVariableType *> & typeVars);
390
391
391
392
// / Construct a new constraint.
392
393
Constraint (ConstraintKind kind, Type first, Type second, Type third,
393
394
ConstraintLocator *locator,
394
- ArrayRef <TypeVariableType *> typeVars);
395
+ SmallPtrSetImpl <TypeVariableType *> & typeVars);
395
396
396
397
// / Construct a new member constraint.
397
398
Constraint (ConstraintKind kind, Type first, Type second, DeclNameRef member,
398
399
DeclContext *useDC, FunctionRefKind functionRefKind,
399
400
ConstraintLocator *locator,
400
- ArrayRef <TypeVariableType *> typeVars);
401
+ SmallPtrSetImpl <TypeVariableType *> & typeVars);
401
402
402
403
// / Construct a new value witness constraint.
403
404
Constraint (ConstraintKind kind, Type first, Type second,
404
405
ValueDecl *requirement, DeclContext *useDC,
405
406
FunctionRefKind functionRefKind, ConstraintLocator *locator,
406
- ArrayRef <TypeVariableType *> typeVars);
407
+ SmallPtrSetImpl <TypeVariableType *> & typeVars);
407
408
408
409
// / Construct a new overload-binding constraint, which might have a fix.
409
410
Constraint (Type type, OverloadChoice choice, DeclContext *useDC,
410
411
ConstraintFix *fix, ConstraintLocator *locator,
411
- ArrayRef <TypeVariableType *> typeVars);
412
+ SmallPtrSetImpl <TypeVariableType *> & typeVars);
412
413
413
414
// / Construct a restricted constraint.
414
415
Constraint (ConstraintKind kind, ConversionRestrictionKind restriction,
415
416
Type first, Type second, ConstraintLocator *locator,
416
- ArrayRef <TypeVariableType *> typeVars);
417
-
417
+ SmallPtrSetImpl <TypeVariableType *> & typeVars);
418
+
418
419
// / Construct a relational constraint with a fix.
419
420
Constraint (ConstraintKind kind, ConstraintFix *fix, Type first, Type second,
420
- ConstraintLocator *locator, ArrayRef<TypeVariableType *> typeVars);
421
+ ConstraintLocator *locator,
422
+ SmallPtrSetImpl<TypeVariableType *> &typeVars);
421
423
422
424
// / Retrieve the type variables buffer, for internal mutation.
423
425
MutableArrayRef<TypeVariableType *> getTypeVariablesBuffer () {
0 commit comments