Skip to content

Fix two problems with statically initialized enums #66238

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

Merged
merged 2 commits into from
May 31, 2023

Conversation

eeckstein
Copy link
Contributor

  • IRGen: fix generation of static enums with function payloads

fixes a compiler crash
rdar://109999583

  • InitializeStaticGlobals: remove dead instructions in global initializer

After removing the store it's required to remove the remaining dead instructions to avoid ownership verifier errors.
rdar://109999674

eeckstein added 2 commits May 31, 2023 14:22
fixes a compiler crash

rdar://109999583
After removing the store it's required to remove the remaining dead instructions to avoid ownership verifier errors.

rdar://109999674
@eeckstein
Copy link
Contributor Author

@swift-ci test

@hamishknight
Copy link
Contributor

@swift-ci please test source compatibility

@hamishknight
Copy link
Contributor

@swift-ci please smoke test macOS

@hamishknight hamishknight merged commit 65bb599 into swiftlang:main May 31, 2023
@eeckstein eeckstein deleted the fix-static-enums branch May 31, 2023 21:11
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