File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ findRuleToDelete(llvm::function_ref<bool(unsigned)> isRedundantRuleFn) {
454
454
// If one of the rules is a concrete type requirement, prefer to
455
455
// eliminate the *other* rule.
456
456
bool ruleIsConcrete = rule.getLHS ().back ().hasSubstitutions ();
457
- bool otherRuleIsConcrete = otherRule.getRHS ().back ().hasSubstitutions ();
457
+ bool otherRuleIsConcrete = otherRule.getLHS ().back ().hasSubstitutions ();
458
458
459
459
if (ruleIsConcrete != otherRuleIsConcrete) {
460
460
if (otherRuleIsConcrete)
@@ -469,20 +469,6 @@ findRuleToDelete(llvm::function_ref<bool(unsigned)> isRedundantRuleFn) {
469
469
// Two rules (T.[C] => T) and (T.[C'] => T) are incomparable if
470
470
// C and C' are superclass, concrete type or concrete conformance
471
471
// symbols.
472
- //
473
- // This should only arise in two limited situations:
474
- // - The new rule was marked invalid due to a conflict.
475
- // - The new rule was substitution-simplified.
476
- //
477
- // In both cases, the new rule becomes the new candidate for
478
- // elimination.
479
- if (!rule.isConflicting () && !rule.isSubstitutionSimplified ()) {
480
- llvm::errs () << " Incomparable rules in homotopy reduction:\n " ;
481
- llvm::errs () << " - Candidate rule: " << rule << " \n " ;
482
- llvm::errs () << " - Best rule so far: " << otherRule << " \n " ;
483
- abort ();
484
- }
485
-
486
472
found = pair;
487
473
continue ;
488
474
}
You can’t perform that action at this time.
0 commit comments