-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/adt: remove cycle check specifcally for dynamic vertices
Now the cycle algorithm treats dynamic vertices as rewrites of regular fields, it should, in theory, no longer need to check cycles. This appears to be at least the case for references referring to ancestors. We remove the respective block accordingly. This fixes one spurious cycle. An alternative, more conservative, fix to the same issue is to exclude reporting the error if n.hasNoCycle is set: if (n.node.IsDynamic || ci.Inline) && !n.hasNonCycle { n.reportCycleError() return ci, true } So if this removal can be identified down the line as breaking cycle detection, it can be reverted to that. Note that this adds one counter error. We will address counter errors later. Signed-off-by: Marcel van Lohuizen <[email protected]> Change-Id: Ie4816869693a656e484aa132b4b126dff86484be Dispatch-Trailer: {"type":"trybot","CL":1206384,"patchset":1,"ref":"refs/changes/84/1206384/1","targetBranch":"master"}
- Loading branch information
Showing
4 changed files
with
18 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters