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 an overly specific pass #92

Closed
wants to merge 5 commits into from
Closed

Fix an overly specific pass #92

wants to merge 5 commits into from

Conversation

msprotz
Copy link
Contributor

@msprotz msprotz commented Nov 21, 2024

As explained in comments, slice_index does not need to be rewritten in case the type of indices is an array. A nano-pass was recovering from the over-zealous pass_by_ref phase from krml, but for some reason was crafted to only trigger on a very specific form of expressions. This fixes it.

@msprotz
Copy link
Contributor Author

msprotz commented Nov 22, 2024

This pass was trying to recover from some poor, earlier, code-gen decisions. Closing in favor of a proper fix.

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