Skip to content

[lldb] Desugar Swift.Void typealias to the empty tuple#12905

Open
augusto2112 wants to merge 1 commit intoswiftlang:swift/release/6.4.xfrom
augusto2112:fix-void-typealias-desugar
Open

[lldb] Desugar Swift.Void typealias to the empty tuple#12905
augusto2112 wants to merge 1 commit intoswiftlang:swift/release/6.4.xfrom
augusto2112:fix-void-typealias-desugar

Conversation

@augusto2112
Copy link
Copy Markdown

Types using Swift.Void as a generic parameter failed to resolve with TypeSystemSwiftTypeRef.

rdar://176386529

Assisted-by: claude

Types using Swift.Void as a generic parameter failed to resolve
with TypeSystemSwiftTypeRef.

rdar://176386529

Assisted-by: claude
@augusto2112 augusto2112 requested a review from a team as a code owner May 6, 2026 19:30
@augusto2112
Copy link
Copy Markdown
Author

@swift-ci test

@augusto2112
Copy link
Copy Markdown
Author

@swift-ci test Windows

@augusto2112 augusto2112 requested a review from adrian-prantl May 7, 2026 18:59
@augusto2112 augusto2112 changed the base branch from stable/21.x to swift/release/6.4.x May 7, 2026 20:39
@augusto2112
Copy link
Copy Markdown
Author

@swift-ci test

Copy link
Copy Markdown

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

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

Type aliases that aren't part of conformances are supposed to be serialized in DWARF. I think the reason this doesn't work here is that it's a generic type parameter rather than the direct type of a local variable.
I think the right fix for this would be to make sure in IRGenDebugInfo that all type aliases appearing nested inside of types of variables are emitted in DWARF. Otherwise we need to hardcode all type aliases in the standard library in LLDB.

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