Skip to content

Commit e2a509c

Browse files
committed
RequirementMachine: Freeze machines built from signatures immediately
1 parent 08aab38 commit e2a509c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/AST/RequirementMachine/RequirementMachine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ RequirementMachine::initWithProtocolSignatureRequirements(
9898

9999
auto result = computeCompletion(RewriteSystem::DisallowInvalidRequirements);
100100

101+
freeze();
102+
101103
if (Dump) {
102104
llvm::dbgs() << "}\n";
103105
}
@@ -145,6 +147,8 @@ RequirementMachine::initWithGenericSignature(CanGenericSignature sig) {
145147

146148
auto result = computeCompletion(RewriteSystem::DisallowInvalidRequirements);
147149

150+
freeze();
151+
148152
if (Dump) {
149153
llvm::dbgs() << "}\n";
150154
}

0 commit comments

Comments
 (0)