Skip to content

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 21, 2025

  • Explanation:

    If the argument type is an array and it's passed to an imported declaration that accepts a raw pointer, the solver should use an "array-to-c-pointer" conversion instead of the one for pointers.

  • Resolves: rdar://158629300

  • Main Branch PR: [CSSimplify] SE-0324: Use correct conversion when converting array types #83862

  • Risk: Very Low. This is a narrow fix only for array typed arguments to imported declarations references that expect a raw pointer argument.

  • Reviewed By: @atrick

  • Testing: Added new test-cases to the suite.

(cherry picked from commit 29b04f4)

If the argument type is an array and it's passed to an imported declaration
that accepts a raw pointer, the solver should use an "array-to-c-pointer"
conversion instead of the one for pointers.

Resolves: rdar://158629300
(cherry picked from commit 29b04f4)
@xedin xedin requested a review from a team as a code owner August 21, 2025 23:02
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Aug 21, 2025
@xedin
Copy link
Contributor Author

xedin commented Aug 21, 2025

@swift-ci please test

@xedin xedin requested a review from bnbarham August 21, 2025 23:50
@xedin xedin merged commit 2623c4b into swiftlang:release/6.2 Aug 23, 2025
5 checks passed
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 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants