Skip to content

change validation to throw instead of pre-condition to avoid crashes #6355

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
Mar 31, 2023

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Mar 30, 2023

5.9 cherry pick of #6354

…wiftlang#6354)

motivation: avoid crashes

changes: throw and internal error instead of pre-condition when validation fails

rdar://98522178
@tomerd tomerd added the swift 5.9 This PR targets the 5.9 branch label Mar 30, 2023
@tomerd
Copy link
Contributor Author

tomerd commented Mar 30, 2023

@swift-ci smoke test

@tomerd tomerd enabled auto-merge (squash) March 30, 2023 17:55
@tomerd tomerd merged commit 6f2bce2 into swiftlang:release/5.9 Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift 5.9 This PR targets the 5.9 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants