Skip to content

[6.0] Fix SILCombine of inject_enum_addr to correctly check for unreferenceable storage #72489

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
Mar 22, 2024

Conversation

meg-gupta
Copy link
Contributor

Explanation: We can't create struct values if they have unreferenceable storage. Previously hasUnreferenceableStorage was used to determine if the StructDecl had unreferenceable storage. This isn't sufficient because the api doesn't look in nested structs. Added a new api called findUnreferenceableStorage and use it instead
Scope: Effects optionals of empty types that may have nested unreferenceable storage
Issue: rdar://125125245
Original PR: #72479
Risk: Low.
Testing: Swift CI
Reviewer: @atrick @nate-chandler

@meg-gupta meg-gupta requested a review from a team as a code owner March 21, 2024 17:33
@meg-gupta meg-gupta requested a review from tbkka March 21, 2024 17:33
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta
Copy link
Contributor Author

@swift-ci test linux platform

@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

@meg-gupta meg-gupta merged commit e78e36f into swiftlang:release/6.0 Mar 22, 2024
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