Skip to content

Assorted small cleanups #70667

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 10 commits into from
Jan 3, 2024
Merged

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jan 2, 2024

Fixes rdar://problem/119823811

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

isParameterPack() is always false for an archetype; we must test for a
PackArchetypeType here instead.
While printing them as `some P` makes sense in the AST since they
only ever appear at their definition point, in the body of a SIL
function, opaque parameter types can be referenced by various
instructions, like any other generic parameter type.

Instead of printing out `some P` or `<anonymous>` depending on
context, neither of which actually parsed, instead print them
with the canonical type `τ_d_i` notation. Since it's printed this
way in the generic parameter list as well, it parses back in.

Fixes rdar://problem/119823811.
@slavapestov slavapestov force-pushed the assorted-small-cleanups branch from 13feddd to 47ca44c Compare January 2, 2024 20:41
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

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