Skip to content

[IRGen] Strip marker protocols in a few more places #74130

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 2 commits into from
Jun 5, 2024

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jun 4, 2024

  • Strip marker protocols when forming generic metadata requests

    Without this might might end up with a single element protocol compositions
    which are invalid.

  • Move marker protocol stripping from mangleTypeSymbol to mangleTypeForFlatUniqueTypeRef

    The original check introduced by [AST] Special handling for existentials with superclass and marker pr… #71855
    is too broad. For concrete metadata we call the runtime demangler so
    we need to strip off marker protocols when mangling that string and
    mangleTypeForReflection already does that.

Resolves: rdar://128667580

Without this might might end up with a single element protocol compositions
which are invalid.
@xedin xedin requested a review from slavapestov June 4, 2024 23:15
@xedin xedin force-pushed the rdar-128667580 branch from 47f55e0 to cee05a2 Compare June 5, 2024 00:53
@xedin
Copy link
Contributor Author

xedin commented Jun 5, 2024

@swift-ci please test

…ngleTypeForFlatUniqueTypeRef`

The original check introduced by swiftlang#71855
is too broad. For concrete metadata we call the runtime demangler so
we need to strip off marker protocols when mangling that string and
`mangleTypeForReflection` already does that.
@xedin xedin force-pushed the rdar-128667580 branch from cee05a2 to 5d243bd Compare June 5, 2024 04:59
@xedin
Copy link
Contributor Author

xedin commented Jun 5, 2024

@swift-ci please test

@xedin xedin merged commit e61671d into swiftlang:main Jun 5, 2024
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