File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -664,8 +664,6 @@ bool DisjunctionStep::shortCircuitDisjunctionAt(
664
664
currentChoice->getOverloadChoice ().getDecl ()->isOperator () &&
665
665
lastSuccessfulChoice->getKind () == ConstraintKind::BindOverload &&
666
666
lastSuccessfulChoice->getOverloadChoice ().getDecl ()->isOperator ()) {
667
- return true ;
668
- }
669
667
670
668
// If we have a SIMD operator, and the prior choice was not a SIMD
671
669
// Operator, we're done.
@@ -690,14 +688,14 @@ bool DisjunctionStep::shortCircuitDisjunctionAt(
690
688
continue ;
691
689
692
690
auto choiceTyvar =
693
- CS.getType (simplifyLocatorToAnchor (CS, overload.getFirst ()))
691
+ CS.getType (simplifyLocatorToAnchor (overload.getFirst ()))
694
692
->getAs <TypeVariableType>();
695
693
if (!choiceTyvar)
696
694
continue ;
697
695
698
696
auto rep = CS.getRepresentative (choiceTyvar);
699
697
if (lastRep != rep) {
700
- CS.mergeEquivalenceClasses (rep, lastRep);
698
+ CS.mergeEquivalenceClasses (rep, lastRep, /* updateWorkList= */ false );
701
699
lastRep = CS.getRepresentative (lastRep);
702
700
}
703
701
}
Original file line number Diff line number Diff line change @@ -711,12 +711,12 @@ class DisjunctionStep final : public BindingStep<DisjunctionChoiceProducer> {
711
711
if (!repr || repr == typeVar)
712
712
return ;
713
713
714
- for (auto *resolved = getResolvedOverloads (); resolved;
715
- resolved = resolved-> Previous ) {
716
- if (!resolved-> BoundType ->isEqual (repr))
714
+ for (auto overload : CS. getResolvedOverloads ()) {
715
+ auto resolved = overload. second ;
716
+ if (!resolved. boundType ->isEqual (repr))
717
717
continue ;
718
718
719
- auto &representative = resolved-> Choice ;
719
+ auto &representative = resolved. choice ;
720
720
if (!representative.isDecl ())
721
721
return ;
722
722
You can’t perform that action at this time.
0 commit comments