Skip to content

Commit a34d757

Browse files
authored
Merge pull request #38339 from xedin/fix-clone-propagate-remember-choice
[ConstraintSystem] Fix handling of whether choice should be remembere…
2 parents 7ed4ccf + d7204bf commit a34d757

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Sema/Constraint.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ Constraint *Constraint::clone(ConstraintSystem &cs) const {
303303
getMemberUseDC(), getFunctionRefKind(), getLocator());
304304

305305
case ConstraintKind::Disjunction:
306-
return createDisjunction(cs, getNestedConstraints(), getLocator());
306+
return createDisjunction(
307+
cs, getNestedConstraints(), getLocator(),
308+
static_cast<RememberChoice_t>(shouldRememberChoice()));
307309

308310
case ConstraintKind::KeyPath:
309311
case ConstraintKind::KeyPathApplication:

0 commit comments

Comments
 (0)