Skip to content

Commit 5022847

Browse files
authored
Merge pull request #80750 from xedin/prune-should-skip-already-disabled
[CSStep] Overload pruning should skip previously disabled choices
2 parents e6e4bd6 + 5eeaaf0 commit 5022847

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
@@ -708,6 +708,9 @@ class DisjunctionStep final : public BindingStep<DisjunctionChoiceProducer> {
708708
// Disable all of the overload choices which are different from
709709
// the one which is currently picked for representative.
710710
for (auto *constraint : disjunction->getNestedConstraints()) {
711+
if (constraint->isDisabled())
712+
continue;
713+
711714
auto choice = constraint->getOverloadChoice();
712715
if (!choice.isDecl() || choice.getDecl() == representative.getDecl())
713716
continue;

0 commit comments

Comments
 (0)