Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect owner assignment #11

Merged
merged 1 commit into from
Jun 12, 2023
Merged

Fix incorrect owner assignment #11

merged 1 commit into from
Jun 12, 2023

Conversation

notJoon
Copy link
Owner

@notJoon notJoon commented Jun 12, 2023

The build_ownership_graph function where variables that are not borrowed were incorrectly assigned an owner. This problem was causing the generate ownership graph to incorrectly that some variables were being referenced by other variables when they were not.

The fix involves resetting the current_owner to an empty string whenever a variable that is not borrowed is encountered. This ensures that such variables are correctly recognized as independent owners in the ownership graph.

@notJoon notJoon merged commit a1742d4 into main Jun 12, 2023
@notJoon notJoon deleted the update-build-graph branch June 12, 2023 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant