Skip to content

[cxx-interop] Do not over-release objects returned by synthesized C++ methods #76139

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
Aug 30, 2024

Conversation

ahatanaka
Copy link
Contributor

Call Sema::BuildReturnStmt instead of ReturnStmt::Create so that an implicit cast of kind ARCProduceObject is inserted in the AST.

rdar://133731973

methods

Call Sema::BuildReturnStmt instead of ReturnStmt::Create so that an
implicit cast of kind ARCProduceObject is inserted in the AST.

rdar://133731973
@ahatanaka
Copy link
Contributor Author

@swift-ci please test

@ahatanaka
Copy link
Contributor Author

@swift-ci please test

@ahatanaka ahatanaka marked this pull request as ready for review August 29, 2024 21:44
@ahatanaka ahatanaka added the c++ interop Feature: Interoperability with C++ label Aug 29, 2024
Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

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

Thanks!

@egorzhdan egorzhdan requested a review from Xazax-hun August 29, 2024 23:55
@ahatanaka ahatanaka merged commit 5bd7a27 into main Aug 30, 2024
5 checks passed
@ahatanaka ahatanaka deleted the derived-method-return branch August 30, 2024 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants