Skip to content

Conversation

@eeckstein
Copy link
Contributor

  • Explanation: Fixes a crash in a SILCombine peephole optimization which simplifying apply instructions of convert_function instructions. We cannot deal with generic arguments/returns. Therefore bail in this case.
  • Risk: Low. It's a simple fix which adds an additional bail-out condition to the peephole optimization.
  • Testing: Tested by a lit test.
  • Issue: rdar://158809851
  • Reviewer: @nate-chandler
  • Main branch PR: SILCombine: fix convert_function -> apply peephole for generic function types #83912

…nction types

Currently we cannot deal with generic arguments/returns. Bail in this case.

Fixes a compiler crash
rdar://158809851
@eeckstein eeckstein requested a review from a team as a code owner August 27, 2025 15:42
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 6713168 into swiftlang:release/6.2 Aug 28, 2025
5 checks passed
@eeckstein eeckstein deleted the fix-combine-apply-of-convertfunction-6.2 branch August 28, 2025 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants