Skip to content

[Sema] Clean up comments and SmallVector capacity for derived Equatable conformance #18382

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
Jul 31, 2018

Conversation

gregheo
Copy link
Contributor

@gregheo gregheo commented Jul 31, 2018

Two small things:

  1. The comment for the helper function returnIfNotEqualGuard referenced an older implementation. Updated to match the current implementation.

  2. The generated guard has a single condition and a single statement in the body. It looks like the old implementation had two statements, but the statements small vector only needs room for one.

gregheo added 2 commits July 30, 2018 19:41
Existing comment references the old way to do the comparison with a
state variable. Updated comment covers how the function works and
matches up the parameter names too.
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.

LGTM, thank you!

@xedin
Copy link
Contributor

xedin commented Jul 31, 2018

@swift-ci please smoke test and merge

@xedin
Copy link
Contributor

xedin commented Jul 31, 2018

Merging failed, going to do it manually because tests passed.

@xedin xedin merged commit d558aeb into swiftlang:master Jul 31, 2018
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