Skip to content

[stable/20230725] SwiftCallingConv: Fix the splitVectorEntry function (#69953) #7712

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

Conversation

aschwaighofer
Copy link

When splitting an entry into multiple entries, the indices of the split entries are a combination of the original split entry's and the number of elements we split that entry to.

Failure to do so resulted in non-sensical entries leading e.g to assertion failures in getCoerceAndExpandTypes and runtime failures in Swift programs.

(cherry picked from commit 08e9c46)

rdar://116852924

…llvm#69953)

When splitting an entry into multiple entries, the indices of the split
entries are a combination of the original split entry's and the number
of elements we split that entry to.

Failure to do so resulted in non-sensical entries leading e.g to
assertion failures in `getCoerceAndExpandTypes` and runtime failures in
Swift programs.

(cherry picked from commit 08e9c46)

rdar://116852924
@aschwaighofer
Copy link
Author

@swift-ci test

@aschwaighofer aschwaighofer merged commit 80ff3c3 into swiftlang:stable/20230725 Nov 1, 2023
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