Skip to content

Commit de645d0

Browse files
committed
[CSBindings] Make infer* methods private to PotentialBindings
1 parent b2f8fa8 commit de645d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/ConstraintSystem.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4582,6 +4582,7 @@ class ConstraintSystem {
45824582
/// if it has only concrete types or would resolve a closure.
45834583
bool favoredOverDisjunction(Constraint *disjunction) const;
45844584

4585+
private:
45854586
/// Detect `subtype` relationship between two type variables and
45864587
/// attempt to infer supertype bindings transitively e.g.
45874588
///
@@ -4604,6 +4605,7 @@ class ConstraintSystem {
46044605
void inferDefaultTypes(ConstraintSystem &cs,
46054606
llvm::SmallPtrSetImpl<CanType> &existingTypes);
46064607

4608+
public:
46074609
/// Finalize binding computation for this type variable by
46084610
/// inferring bindings from context e.g. transitive bindings.
46094611
void finalize(ConstraintSystem &cs,

0 commit comments

Comments
 (0)