Skip to content

Commit a6cd78e

Browse files
committed
RequirementMachine: Fix a typo in debug output and comment
1 parent 003bd5a commit a6cd78e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/AST/RequirementMachine/RewriteSystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void RewriteSystem::simplifyRewriteSystem() {
333333
continue;
334334

335335
if (Debug.contains(DebugFlags::Completion)) {
336-
const auto &otherRule = getRule(ruleID);
336+
const auto &otherRule = getRule(*otherRuleID);
337337
llvm::dbgs() << "$ Deleting rule " << rule << " because "
338338
<< "its left hand side contains " << otherRule
339339
<< "\n";

lib/AST/RequirementMachine/RewriteSystemCompletion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ RewriteSystem::computeConfluentCompletion(unsigned maxIterations,
535535
if (from == lhs.getLHS().begin()) {
536536
// While every rule will have an overlap of the first kind
537537
// with itself, it's not useful to consider since the
538-
// resulting trivial pair is always trivial.
538+
// resulting critical pair is always trivial.
539539
if (i == j)
540540
return;
541541

0 commit comments

Comments
 (0)