File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -626,6 +626,9 @@ void RewriteContext::getProtocolComponentRec(
626626
627627// / Lazily construct a requirement machine for the given protocol's strongly
628628// / connected component (SCC) in the protocol dependency graph.
629+ // /
630+ // / This can only be called once, to prevent multiple requirement machines
631+ // / for being built with the same component.
629632ArrayRef<const ProtocolDecl *> RewriteContext::getProtocolComponent (
630633 const ProtocolDecl *proto) {
631634 auto found = Protos.find (proto);
@@ -650,6 +653,8 @@ ArrayRef<const ProtocolDecl *> RewriteContext::getProtocolComponent(
650653 abort ();
651654 }
652655
656+ component.InProgress = true ;
657+
653658 return component.Protos ;
654659}
655660
You can’t perform that action at this time.
0 commit comments