Skip to content

[6.2][IRGen] Don't set HasLayoutString flag on non-copyable generic types #81531

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
May 16, 2025

Conversation

drexin
Copy link
Contributor

@drexin drexin commented May 15, 2025

  • Explanation: While generic types generally have layout strings (when enabled), non-copyable types don't, so we have to make sure the flag does not get set.
  • Scope: Type metadata flags for compact value witnesses
  • Issues: rdar://151176697
  • Original PRs: [IRGen] Don't set HasLayoutString flag on non-copyable generic types #81530
  • Risk: Low. This flag is only used when compact value witnesses are enabled.
  • Testing: Added regression tests for structs and enums.
  • Reviewers: @aschwaighofer @mikeash

rdar://151176697

While generic types generally have layout strings (when enabled), non-copyable types don't, so
we have to make sure the flag does not get set.
@drexin drexin requested a review from a team as a code owner May 15, 2025 17:30
@drexin
Copy link
Contributor Author

drexin commented May 15, 2025

@swift-ci test

@drexin drexin changed the title [IRGen] Don't set HasLayoutString flag on non-copyable generic types [6.2][IRGen] Don't set HasLayoutString flag on non-copyable generic types May 15, 2025
@drexin drexin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels May 15, 2025
@drexin drexin merged commit 8299d7b into swiftlang:release/6.2 May 16, 2025
5 checks passed
@drexin drexin deleted the wip-151176697-6.2 branch May 16, 2025 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants