Skip to content

Commit 868e48c

Browse files
committed
RequirementMachine: Mark rules as simplified in PropertyMap::addConcreteTypeProperty()
1 parent 9e234a0 commit 868e48c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/AST/RequirementMachine/PropertyUnification.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ void PropertyMap::addConcreteTypeProperty(
629629
Term key, Symbol property, unsigned ruleID) {
630630
auto *props = getOrCreateProperties(key);
631631

632-
const auto &rule = System.getRule(ruleID);
632+
auto &rule = System.getRule(ruleID);
633633
assert(rule.getRHS() == key);
634634

635635
bool debug = Debug.contains(DebugFlags::ConcreteUnification);
@@ -782,6 +782,8 @@ void PropertyMap::addConcreteTypeProperty(
782782
buildRewritePathForUnifier(*props->ConcreteTypeRule, ruleID, System,
783783
path);
784784
System.recordRewriteLoop(MutableTerm(rule.getLHS()), path);
785+
786+
rule.markSubstitutionSimplified();
785787
}
786788
}
787789
}

0 commit comments

Comments
 (0)