Skip to content

Adjust new dead code optimization to not remove module deinit#27610

Merged
jabraham17 merged 1 commit intochapel-lang:mainfrom
jabraham17:dont-remove-mod-deinit
Aug 6, 2025
Merged

Adjust new dead code optimization to not remove module deinit#27610
jabraham17 merged 1 commit intochapel-lang:mainfrom
jabraham17:dont-remove-mod-deinit

Conversation

@jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Aug 6, 2025

Adjusts the new dead code optimization added in #27562 to avoid removing module deinit's.

The pass was avoiding removing regular deinit's, but module deinit's get unmarked as destructors and so weren't handled.

[Reviewed by @e-kayrakli]

Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
@jabraham17 jabraham17 merged commit a4b7265 into chapel-lang:main Aug 6, 2025
10 checks passed
@jabraham17 jabraham17 deleted the dont-remove-mod-deinit branch August 6, 2025 20:49
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