Skip to content

Commit 65fda80

Browse files
committed
RequirementMachine: Small fix for debug output
1 parent 3a6a2b5 commit 65fda80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/AST/RequirementMachine/HomotopyReduction.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,16 +411,16 @@ findRuleToDelete(llvm::function_ref<bool(unsigned)> isRedundantRuleFn) {
411411
if (!isRedundantRuleFn(ruleID))
412412
continue;
413413

414-
if (!found) {
415-
found = pair;
416-
continue;
417-
}
418-
419414
if (Debug.contains(DebugFlags::HomotopyReductionDetail)) {
420415
llvm::dbgs() << "** Candidate " << rule << " from loop #"
421416
<< pair.first << "\n";
422417
}
423418

419+
if (!found) {
420+
found = pair;
421+
continue;
422+
}
423+
424424
// 'rule' is the candidate rule; 'otherRule' is the best rule to eliminate
425425
// we've found so far.
426426
const auto &otherRule = getRule(found->second);

0 commit comments

Comments
 (0)