Skip to content

Commit 08aab38

Browse files
committed
RequirementMachine: Don't record rewrite loops for protocol signature machines
A requirement machine built from existing protocol requirement signatures only exists to cache those rules and allow them to be inherited by other machines. Recording loops is unnecessary in this case, since no minimization will be performed.
1 parent 4d097da commit 08aab38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/RequirementMachine/RequirementMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ RequirementMachine::initWithProtocolSignatureRequirements(
9090
builder.initWithProtocolSignatureRequirements(protos);
9191

9292
// Add the initial set of rewrite rules to the rewrite system.
93-
System.initialize(/*recordLoops=*/true, protos,
93+
System.initialize(/*recordLoops=*/false, protos,
9494
std::move(builder.WrittenRequirements),
9595
std::move(builder.ImportedRules),
9696
std::move(builder.PermanentRules),

0 commit comments

Comments
 (0)