[Constraint solver] Address some of Mark's comments. NFC

This commit is contained in:
Doug Gregor
2016-10-22 23:27:41 -07:00
parent d2cb83b4c7
commit 12b6894849
2 changed files with 3 additions and 6 deletions

View File

@@ -3776,9 +3776,7 @@ ConstraintSystem::simplifyRestrictedConstraintImpl(
getConstraintLocator(locator));
Constraint *disjunctionChoices[] = {int8Con, uint8Con, voidCon};
addUnsolvedConstraint(
Constraint::createDisjunction(*this, disjunctionChoices,
getConstraintLocator(locator)));
addDisjunctionConstraint(disjunctionChoices, locator);
return SolutionKind::Solved;
}