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(
626
626
627
627
// / Lazily construct a requirement machine for the given protocol's strongly
628
628
// / 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.
629
632
ArrayRef<const ProtocolDecl *> RewriteContext::getProtocolComponent (
630
633
const ProtocolDecl *proto) {
631
634
auto found = Protos.find (proto);
@@ -650,6 +653,8 @@ ArrayRef<const ProtocolDecl *> RewriteContext::getProtocolComponent(
650
653
abort ();
651
654
}
652
655
656
+ component.InProgress = true ;
657
+
653
658
return component.Protos ;
654
659
}
655
660
You can’t perform that action at this time.
0 commit comments