Skip to content

Fix crash when emitting an atom of any #546

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
Jul 6, 2022
Merged

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Jul 5, 2022

When emitting an atom of any, we were unconditionally failing and crashing the process. I think this is an oversight because this case can occur pretty often with CharacterClass.any who creates one of these.

Resolves: rdar://96280236

@Azoy Azoy requested review from milseman and hamishknight July 5, 2022 22:48
@Azoy
Copy link
Contributor Author

Azoy commented Jul 6, 2022

@swift-ci please test

@Azoy Azoy merged commit 410dbe6 into swiftlang:main Jul 6, 2022
@Azoy Azoy deleted the fix-emitany branch July 6, 2022 05:53
Azoy added a commit to Azoy/swift-experimental-string-processing that referenced this pull request Jul 6, 2022
Fix crash when emitting an atom of any
hamishknight pushed a commit to hamishknight/swift-experimental-string-processing that referenced this pull request Jul 6, 2022
Fix crash when emitting an atom of any
Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks reasonable to me

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