Skip to content

IRGen: Unwrap one-element tuple metadata in emitDynamicTupleTypeMetadataRef() [5.9] #65560

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

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented May 1, 2023

  • Description: We need to unwrap one-element tuples after pack expansion in IRGen, so that the dynamic behavior of unspecialized generic code matches specialized generic code as well as call-site type substitution.

  • Risk: Low, the change only concerns variadic generics which are a new feature.

  • Reviewed by: @hborla

  • Radar: rdar://problem/108759306

  • Tested: New test cases added

…ataRef()

This matches the static behavior of Type::subst() and the SIL optimizer.
@slavapestov slavapestov requested a review from a team as a code owner May 1, 2023 22:36
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov merged commit 71e71be into swiftlang:release/5.9 May 2, 2023
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants