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

Copy var flags when duplicating local variables #11803

Merged
merged 7 commits into from
Oct 25, 2024
Merged

Conversation

Simn
Copy link
Member

@Simn Simn commented Oct 25, 2024

This is a pretty bad oversight which might cause all sorts of issues, so we might want to pull it onto the 4.3 branch as well.

As fallout, we now hoist static locals inside unrollable loops in order to avoid duplicate declarations. Looking at this makes we wonder if we shouldn't always hoist local declarations in these cases to avoid declaring multiple variables unnecessarily.

@Simn
Copy link
Member Author

Simn commented Oct 25, 2024

Turns out doing this for non-statics isn't so easy because of local functions and threads, so let's not do this after all. I still did some related cleanup, so this should be good regardless.

@kLabz kLabz added this to the 4.3 Hotfix candidates milestone Oct 25, 2024
@Simn Simn merged commit 25d36a6 into development Oct 25, 2024
99 checks passed
@Simn Simn deleted the duplicate_var_flags branch October 25, 2024 11:50
@skial skial mentioned this pull request Oct 31, 2024
1 task
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.

2 participants