Skip to content

SIL: let Type.getNominalFields return nil for a struct with unreferenceable storage #82140

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 1 commit into from
Jun 10, 2025

Conversation

eeckstein
Copy link
Contributor

Like C bitfields.
Fixes a crash in the InitializeStaticGlobals pass in case a global having a C struct type with bitfield is initialized statically.

…e storage

Like C bitfields.
Fixes a crash in the InitializeStaticGlobals pass in case a global having a C struct type with bitfield is initialized statically.
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein eeckstein changed the title SIL: let getNominalFields return nil for a struct with unreferenceable storage SIL: let Type.getNominalFields return nil for a struct with unreferenceable storage Jun 10, 2025
@eeckstein eeckstein enabled auto-merge June 10, 2025 09:03
@eeckstein eeckstein merged commit 48ebd52 into swiftlang:main Jun 10, 2025
3 checks passed
@eeckstein eeckstein deleted the fix-init-static-globals branch June 10, 2025 14:01
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