Skip to content

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 hamishknight and milseman 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