Skip to content
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

[TypeLowering] Move-only types are lexical. #66705

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

nate-chandler
Copy link
Contributor

Vars of such types should be given lexical alloc_stacks by AllocBoxToStack which requires that the alloc_box insts formed for them have an associated borrow scope which in turn requires that type lowering for move only structs and enums have their lexical bits set.

rdar://110901430

Vars of such types should be given lexical `alloc_stack`s by
`AllocBoxToStack` which requires that the `alloc_box` insts formed for
them have an associated borrow scope which in turn requires that type
lowering for move only structs and enums have their lexical bits set.

rdar://110901430
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@atrick atrick left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@nate-chandler nate-chandler merged commit 13cdc66 into apple:main Jun 16, 2023
5 checks passed
@nate-chandler nate-chandler deleted the rdar110901430 branch June 16, 2023 20:26
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.

None yet

2 participants