Skip to content

[Parse] Fix empty platform condition crash #39444

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 2 commits into from
Sep 29, 2021

Conversation

hamishknight
Copy link
Contributor

Handle the empty argument case in getSingleSubExp, otherwise we'd crash with an index out of bounds.

rdar://83017601

Handle the empty argument case in `getSingleSubExp`,
otherwise we'd crash with an index out of bounds.

rdar://83017601
Drop the "only one" in the message in this case,
as that should only apply for too many args.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit ce334af into swiftlang:main Sep 29, 2021
@hamishknight hamishknight deleted the import-regulations branch September 29, 2021 17:01
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