Skip to content
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

[MergeFunc] Fix crash caused by bitcasting ArrayType (#133259) #10422

Merged
merged 1 commit into from
Apr 5, 2025

Conversation

tobias-stadler
Copy link

createCast in MergeFunctions did not consider ArrayTypes, which results in the creation of a bitcast between ArrayTypes in the thunk function, leading to an assertion failure in the provided test case.

The version of createCast in GlobalMergeFunctions does handle ArrayTypes, so this common code has been factored out into the IRBuilder.

rdar://145555614
(cherry picked from commit 1302610)

createCast in MergeFunctions did not consider ArrayTypes, which results
in the creation of a bitcast between ArrayTypes in the thunk function,
leading to an assertion failure in the provided test case.

The version of createCast in GlobalMergeFunctions does handle
ArrayTypes, so this common code has been factored out into the
IRBuilder.

rdar://145555614
(cherry picked from commit 1302610)
@tobias-stadler tobias-stadler requested a review from a team as a code owner April 4, 2025 11:29
@fhahn
Copy link

fhahn commented Apr 4, 2025

@swift-ci please test

@fhahn
Copy link

fhahn commented Apr 4, 2025

@swift-ci please test llvm

Copy link

@fhahn fhahn left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@fhahn fhahn merged commit 58a2900 into swiftlang:stable/20240723 Apr 5, 2025
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