Skip to content

[cxx-interop] Make a test work properly with optimizations #66478

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 1 commit into from
Jun 9, 2023

Conversation

egorzhdan
Copy link
Contributor

The compiler might optimize away the first copy, so just make sure that no copies are happening during the actual initialization of Array.

rdar://110422053

The compiler might optimize away the first copy, so just make sure that no copies are happening during the actual initialization of Array.

rdar://110422053
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jun 8, 2023
@egorzhdan egorzhdan requested review from zoecarver and hyp as code owners June 8, 2023 22:54
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@zoecarver zoecarver left a comment

Choose a reason for hiding this comment

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

SGTM

@egorzhdan egorzhdan merged commit 9991468 into main Jun 9, 2023
@egorzhdan egorzhdan deleted the egorzhdan/copy-test-fix branch June 9, 2023 11:29
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.

3 participants