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: invalid folded mutable constant value #250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

katat
Copy link
Collaborator

@katat katat commented Jan 4, 2025

When mutable constant variable is modified in a for loop, it should be marked as a non constant field.
Otherwise the MAST phase will try to constant fold that variable into wrong constant value, because we don't support unrolling in for loop.

@katat katat force-pushed the fix/mut-cst-folding-loop branch from ef81a46 to 0b91748 Compare January 4, 2025 02:28
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