Skip to content

Commit 12b6894

Browse files
committed
[Constraint solver] Address some of Mark's comments. NFC
1 parent d2cb83b commit 12b6894

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3776,9 +3776,7 @@ ConstraintSystem::simplifyRestrictedConstraintImpl(
37763776
getConstraintLocator(locator));
37773777

37783778
Constraint *disjunctionChoices[] = {int8Con, uint8Con, voidCon};
3779-
addUnsolvedConstraint(
3780-
Constraint::createDisjunction(*this, disjunctionChoices,
3781-
getConstraintLocator(locator)));
3779+
addDisjunctionConstraint(disjunctionChoices, locator);
37823780
return SolutionKind::Solved;
37833781
}
37843782

lib/Sema/ConstraintSystem.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,9 +1858,8 @@ class ConstraintSystem {
18581858
///
18591859
/// \returns the result of performing the tuple-to-tuple conversion.
18601860
SolutionKind matchTupleTypes(TupleType *tuple1, TupleType *tuple2,
1861-
TypeMatchKind kind,
1862-
TypeMatchOptions flags,
1863-
ConstraintLocatorBuilder locator);
1861+
TypeMatchKind kind, TypeMatchOptions flags,
1862+
ConstraintLocatorBuilder locator);
18641863

18651864
/// \brief Subroutine of \c matchTypes(), which matches a scalar type to
18661865
/// a tuple type.

0 commit comments

Comments
 (0)