Skip to content

[6.2] ASTDemangler: Round-trip @isolated @sil_implicit_leading_param parameter attributes #82543

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

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jun 26, 2025

6.2 cherry-pick of #82533

  • Description: Extend SILFunctionType mangling to preserve certain attributes that were added for the NonisolatedNonsendingByDefault feature. We don't mangle SILFunctionTypes in ABI symbols, but it does appear in debug info for rreabstraction thunks.

  • Origination: This is part of the SE-0461 feature, new in 6.2.

  • Scope of the issue: Fixes round-trip debug info assert crash.

  • Radar: Fixes rdar://153730847.

  • Risk: While there's a bunch of code here, its all just boilerplate for plumbing these two extra attributes through the SILFunctionType mangling.

  • Reviewed by: @bnbarham

…ter attributes

We sometimes mangle SILFunctionTypes when generating debug info
for reabstraction thunks, and these can have various exotic
parameter and result attributes. Two recent additions were
never plumbed through the mangler, causing assertion failures
when emitting debug info.

Fixes rdar://153730847.
@slavapestov slavapestov requested a review from a team as a code owner June 26, 2025 19:05
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov changed the title ASTDemangler: Round-trip @isolated @sil_implicit_leading_param parameter attributes [6.2] ASTDemangler: Round-trip @isolated @sil_implicit_leading_param parameter attributes Jun 26, 2025
@slavapestov slavapestov merged commit 892e555 into swiftlang:release/6.2 Jun 27, 2025
5 checks passed
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