Skip to content

[Debug Info] Do not emit children of bound generic types #80078

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
Mar 19, 2025

Conversation

adrian-prantl
Copy link
Contributor

This reverts the problematic parts of
fcbebc5 which had caused a lot of unintended fallout, while preserving the actual feature supported by the patch.

Before that patch (fcbeb), and after this one, we don't emit members of specialized bound generic types, because these can be reconstructed by substituting the "template parameters" in the unspecialized type. This patch carves out an exception for inline arrays, because DWARF has special support for arrays, which allows debuggers to reason about them without needing special support.

rdar://146326633

@adrian-prantl
Copy link
Contributor Author

@swift-ci test

This reverts the problematic parts of
fcbebc5 which had caused a lot of
unintended fallout, while preserving the actual feature supported by
the patch.

Before that patch (fcbeb), and after this one, we don't emit members
of specialized bound generic types, because these can be reconstructed
by substituting the "template parameters" in the unspecialized
type. This patch carves out an exception for inline arrays, because
DWARF has special support for arrays, which allows debuggers to reason
about them without needing special support.

rdar://146326633
@adrian-prantl
Copy link
Contributor Author

test with swiftlang/llvm-project#10289
@swift-ci test

@adrian-prantl adrian-prantl merged commit 2b70a7c into swiftlang:main Mar 19, 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.

1 participant