[ConstraintSystem] NFC: Extract Swift -> C pointer conversion simplification into a separate method

This commit is contained in:
Pavel Yaskevich
2021-08-12 13:00:12 -07:00
parent 416388191f
commit f368e5a7b6
2 changed files with 89 additions and 77 deletions

View File

@@ -4872,6 +4872,12 @@ public: // FIXME: Public for use by static functions.
TypeMatchOptions flags,
ConstraintLocatorBuilder locator);
/// Simplify a conversion between Swift and C pointers.
SolutionKind
simplifyPointerToCPointerRestriction(Type type1, Type type2,
TypeMatchOptions flags,
ConstraintLocatorBuilder locator);
public:
/// Simplify the system of constraints, by breaking down complex
/// constraints into simpler constraints.