Skip to content

Commit 8aab162

Browse files
committed
[Constraint solver] Skip non-overload bindings.
1 parent b3b5d58 commit 8aab162

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Sema/CSStep.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ class DisjunctionStep final : public BindingStep<DisjunctionChoiceProducer> {
662662
// Disable all of the overload choices which are different from
663663
// the one which is currently picked for representative.
664664
for (auto *constraint : disjunction->getNestedConstraints()) {
665+
if (constraint->getKind() != ConstraintKind::BindOverload)
666+
continue;
667+
665668
auto choice = constraint->getOverloadChoice();
666669
if (!choice.isDecl() || choice.getDecl() == representative.getDecl())
667670
continue;

0 commit comments

Comments
 (0)