-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[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
[typelowering] Look through 1 level of optionality when determining i… #20060
Conversation
@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
4e23b54
to
dd8edef
Compare
@swift-ci smoke test and merge |
lldb test failure on macOS. |
@swift-ci smoke test os x platform |
1 similar comment
@swift-ci smoke test os x platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
@swift-ci smoke test os x platform |
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. |
…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