Skip to content

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