Skip to content

Conversation

AlexDenisov
Copy link
Contributor

No description provided.

@AlexDenisov AlexDenisov requested a review from a team as a code owner July 29, 2022 08:35
@AlexDenisov AlexDenisov requested a review from redsun82 July 29, 2022 08:35
@github-actions github-actions bot added the Swift label Jul 29, 2022
Comment on lines +299 to +306
if (decl.getKind() == swift::DeclKind::TypeAlias) {
return mangler.mangleEntity(&decl);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this warrants a comment explaining why we treat this differently. Even if we don't know the root cause requiring this, it'd be good to give a short description of the example requiring this (mentioning CFXML type aliases)

Copy link
Contributor

Choose a reason for hiding this comment

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

or maybe, as mangledName is already on swift::ValueDecl, we can just ditch mangleAnyDecl and only use mangleEntity?

@AlexDenisov AlexDenisov force-pushed the alexdenisov/type-alias-mangling branch from 7c24fae to 34edb25 Compare July 29, 2022 12:12
Copy link
Contributor

@redsun82 redsun82 left a comment

Choose a reason for hiding this comment

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

🚢

@AlexDenisov AlexDenisov merged commit 22c5b7a into main Jul 29, 2022
@AlexDenisov AlexDenisov deleted the alexdenisov/type-alias-mangling branch July 29, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants