Skip to content
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

[5.0] [IRGen] Do not write out ObjC property ivar field for static properties #21481

Merged
merged 1 commit into from Dec 22, 2018

Conversation

jrose-apple
Copy link
Contributor

@jrose-apple jrose-apple commented Dec 21, 2018

  • Explanation: Objective-C properties have metadata for run-time use, but we were including some information that's only meant for instance properties: the name of the backing storage. Class properties, of course, don't have instance variables backing them, even if they are stored.

  • Scope: Affects the ObjC metadata for class properties.

  • Issue: SR-9541 / rdar://problem/46830117

  • Risk: Very low. There's no format change here, just an omission of information that is incorrect.

  • Testing: Added compiler regression tests.

  • Reviewed by: me (patch by @zneak)

[IRGen] Do not write out ObjC property ivar field for static properties
@jrose-apple jrose-apple requested a review from a team as a code owner December 21, 2018 03:56
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@AnnaZaks AnnaZaks merged commit e5d3699 into apple:swift-5.0-branch Dec 22, 2018
@jrose-apple jrose-apple deleted the 5.0-objc-static-ivars branch December 22, 2018 00:16
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.

None yet

2 participants