Skip to content

[6.0][region-isolation] Check if we have a self param before attempting to get the self type. #74530

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

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jun 18, 2024

Explanation: This PR fixes a small bug where we were attempting to call some "self" oriented APIs without checking if we actually had a self parameter.

Radars:

  • rdar://129975097

Original PRs:

Risk: Low. This is a very small targeted fix that can be seen to be correct on the tin.
Testing: Added a test.
Reviewer: N/A

… get the self type.

Otherwise in asserts builds we get an assert and in no-asserts we get a crash.

rdar://129975097
(cherry picked from commit d032bc0)
@gottesmm gottesmm requested a review from a team as a code owner June 18, 2024 20:41
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm gottesmm enabled auto-merge June 19, 2024 04:58
@gottesmm gottesmm merged commit 1bcf094 into swiftlang:release/6.0 Jun 19, 2024
5 checks passed
@gottesmm gottesmm deleted the release/6.0-rdar129975097 branch June 19, 2024 04:58
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