Skip to content

LargeLoadable types: propagate large type property along projections #78321

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
Jan 2, 2025

Conversation

aschwaighofer
Copy link
Contributor

Back propagate the isLargeType property along projections. This is neccessary because c union types can "hide" largeness.

rdar://141775951

Back propagate the isLargeType property along projections. This is
neccessary because c union types can "hide" largeness.

rdar://141775951
@aschwaighofer
Copy link
Contributor Author

@swift-ci test

@aschwaighofer
Copy link
Contributor Author

@swift-ci test

@aschwaighofer aschwaighofer merged commit 97b1548 into swiftlang:main Jan 2, 2025
5 checks passed
aschwaighofer added a commit to aschwaighofer/swift that referenced this pull request Jan 2, 2025
…tions

Explanation: Back propagate the isLargeType property along projections. This is
neccessary because c union types can "hide" largeness. Without this
change the compiler would crash because an operand of a projection
(struct_extract, tuple_extract) would be deemed small but the projected
element would be deemed large. The stack location for the operand would
therefore be missing when lowering to addresses.

Scope: Corner case involving large c type lowering.

Risk: Medium. Should only affect c union types.

Original PR: swiftlang#78321

rdar://141775951
Copy link
Contributor

@drexin drexin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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