Skip to content

[Runtime] Fix gatherWrittenGenericArgs crashing when description is NULL #26936

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 9, 2019

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Aug 29, 2019

rdar://problem/54775582
SR-11374

@mikeash mikeash requested a review from DougGregor August 29, 2019 20:04
@mikeash
Copy link
Contributor Author

mikeash commented Aug 29, 2019

@DougGregor Can you verify that this is the proper fix? I think this is just a missing NULL check but I want to double-check and make sure I'm not actually papering over the real problem.

@mikeash mikeash force-pushed the null-was-a-mistake branch 2 times, most recently from 4e0d13b to e396bd8 Compare August 29, 2019 20:06
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

An Objective-C class won't have a type descriptor (and won't have its generic parameters exposed as metadata in any way), so yes, this is a reasonable fix.

@mikeash
Copy link
Contributor Author

mikeash commented Aug 30, 2019

Thanks Doug! That’s what I thought, but wanted to be sure I didn’t miss something.

@mikeash
Copy link
Contributor Author

mikeash commented Aug 30, 2019

@swift-ci please test and merge

1 similar comment
@mikeash
Copy link
Contributor Author

mikeash commented Sep 6, 2019

@swift-ci please test and merge

@mikeash
Copy link
Contributor Author

mikeash commented Sep 9, 2019

@swift-ci please test and merge

1 similar comment
@mikeash
Copy link
Contributor Author

mikeash commented Sep 9, 2019

@swift-ci please test and merge

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