Skip to content

Add a missing check for the number of children before accessing them. #37332

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
May 11, 2021

Conversation

adrian-prantl
Copy link
Contributor

@adrian-prantl adrian-prantl commented May 7, 2021

parentDemangling is going to be added as the first child of the return node, so
we can't construct one unless we have both children.

rdar://77530286
(cherry picked from commit a50c048)

• Explanation: Fix a crash in LLDB by adding missing error handling in MetadataReader.h in the Swift repository.
• Scope: LLDB
• Risk: Low
• Issue: rdar://77530286
• Reviewer: Joe Groff @jckarter

parentDemangling is going to be added as the first child of the return node, so
we can't construct one unless we have both children.

rdar://77530286
(cherry picked from commit a50c048)
@adrian-prantl adrian-prantl requested a review from a team as a code owner May 7, 2021 23:50
@adrian-prantl
Copy link
Contributor Author

@swift-ci test

@adrian-prantl
Copy link
Contributor Author

cherry-pick of #37331

@swift-ci
Copy link
Contributor

swift-ci commented May 8, 2021

Build failed
Swift Test Linux Platform
Git Sha - 051b4ce

@adrian-prantl
Copy link
Contributor Author

@swift-ci test

@adrian-prantl
Copy link
Contributor Author

@DougGregor ping

@adrian-prantl
Copy link
Contributor Author

@swift-ci nominate

@fredriss fredriss merged commit 6c01131 into swiftlang:release/5.5 May 11, 2021
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.

3 participants