mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
RequirementMachine: Small fix for debug output
This commit is contained in:
@@ -411,16 +411,16 @@ findRuleToDelete(llvm::function_ref<bool(unsigned)> isRedundantRuleFn) {
|
||||
if (!isRedundantRuleFn(ruleID))
|
||||
continue;
|
||||
|
||||
if (!found) {
|
||||
found = pair;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (Debug.contains(DebugFlags::HomotopyReductionDetail)) {
|
||||
llvm::dbgs() << "** Candidate " << rule << " from loop #"
|
||||
<< pair.first << "\n";
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
found = pair;
|
||||
continue;
|
||||
}
|
||||
|
||||
// 'rule' is the candidate rule; 'otherRule' is the best rule to eliminate
|
||||
// we've found so far.
|
||||
const auto &otherRule = getRule(found->second);
|
||||
|
||||
Reference in New Issue
Block a user