Skip to content

[typelowering] Look through 1 level of optionality when determining i… #20060

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

Conversation

gottesmm
Copy link
Contributor

…f a value has a NewType representation.

This is necessary to ensure that we autorelease such values in objc thunks.
Previously, we were returning the value as unowned, leaking it. I added a test
to interpreter that will make sure in the future we do not leak like this
again.

rdar://45543138

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

…f a value has a NewType representation.

This is necessary to ensure that we autorelease such values in objc thunks.
Previously, we were returning the value as unowned, leaking it. I added a test
to interpreter that will make sure in the future we do not leak like this
again.

rdar://45543138
@gottesmm gottesmm force-pushed the pr-d72b9d7f8355cbe3c62d4424af52b4dae10ab1dd branch from 4e23b54 to dd8edef Compare October 26, 2018 01:52
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

2 similar comments
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test and merge

@gottesmm
Copy link
Contributor Author

lldb test failure on macOS.

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test os x platform

1 similar comment
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test os x platform

Copy link
Contributor

@jckarter jckarter left a comment

Choose a reason for hiding this comment

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

Good catch!

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test os x platform

@gottesmm gottesmm merged commit eac1524 into swiftlang:master Oct 26, 2018
@gottesmm gottesmm deleted the pr-d72b9d7f8355cbe3c62d4424af52b4dae10ab1dd branch October 26, 2018 17:43
@gottesmm
Copy link
Contributor Author

Forgot to enable ownership verification on that test file (this was the failure that was blocking me from doing so). Going to do that in a follow up commit.

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