Skip to content

Commit a8bc8a8

Browse files
committed
RequirementMachine: Add assertion to generating conformances algorithm
1 parent a729beb commit a8bc8a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/AST/RequirementMachine/GeneratingConformances.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ RewriteSystem::decomposeTermIntoConformanceRuleLeftHandSides(
157157
"Canonical conformance term should simplify in one step");
158158

159159
const auto &step = *steps.begin();
160+
assert(getRule(step.RuleID).isProtocolConformanceRule());
160161
assert(step.Kind == RewriteStep::ApplyRewriteRule);
161162
assert(step.EndOffset == 0);
162163
assert(!step.Inverse);

0 commit comments

Comments
 (0)