Skip to content

[cherry-pick][DebugInfo] Fix debug info round tripping of types inside functions #78330

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

augusto2112
Copy link
Contributor

Types with @_originallyDefinedIn cannot be round tripped,

Types declared inside functions have their mangling affected by the function signature. If the generic signature mentions an @_originallyDefinedIn type, the type inside the function cannot be round tripped either.

This commit disables round tripping for this scenario.

(cherry picked from commit 3bb29ca)

@augusto2112 augusto2112 requested a review from a team as a code owner December 20, 2024 22:07
@augusto2112
Copy link
Contributor Author

@swift-ci test

Types with @_originallyDefinedIn cannot be round tripped,

Types declared inside functions have their mangling affected by the
function signature. If the generic signature mentions an
@_originallyDefinedIn type, the type inside the function cannot be round
tripped either.

This commit disables round tripping for this scenario.

(cherry picked from commit d75bde3)
@augusto2112 augusto2112 force-pushed the fix-orig-def-type-in-func-6 branch from 34e0d0e to 2720862 Compare December 20, 2024 22:14
@augusto2112
Copy link
Contributor Author

@swift-ci test

Now that mangling for the debugger respects originally defined in, this
is not needed anymore.

(cherry picked from commit 398ded5)
@augusto2112 augusto2112 force-pushed the fix-orig-def-type-in-func-6 branch from 47b0b91 to eaf307b Compare December 21, 2024 01:00
@augusto2112
Copy link
Contributor Author

@swift-ci test

@adrian-prantl adrian-prantl disabled auto-merge January 4, 2025 00:14
@adrian-prantl adrian-prantl merged commit a61b7fa into swiftlang:release/6.1 Jan 4, 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