Skip to content

[ConstraintSystem] Fix a silly crash in repairFailures. #39124

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
Sep 2, 2021

Conversation

hborla
Copy link
Member

@hborla hborla commented Sep 1, 2021

The code checked if the last element of locator path vector is a certain kind of element without first ensuring that the vector isn't empty.

Resolves: rdar://80271707 / SR-14894

The code checked if the last element of locator path vector
is a certain kind of element without first ensuring that the
vector isn't empty.
@hborla hborla requested a review from xedin September 1, 2021 20:52
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

Oops :)

@hborla
Copy link
Member Author

hborla commented Sep 1, 2021

@swift-ci please smoke test

@hborla hborla merged commit 1dad0f8 into swiftlang:main Sep 2, 2021
@hborla hborla deleted the repair-failures-crash branch September 2, 2021 00:11
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