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

[cxx-interop] Layout reference types that use tail padding of their bases correctly #80344

Merged
merged 2 commits into from
Mar 28, 2025

Conversation

egorzhdan
Copy link
Contributor

This is a follow-up to d3e43bb which resolved the issue for value types, but not for foreign reference types.

This change teaches IRGen that a base type of a C++ type might occupy less memory than its sizeof, specifically, it might only use dsize amount of memory.

rdar://147527755

…ases correctly

This is a follow-up to d3e43bb which resolved the issue for value types, but not for foreign reference types.

This change teaches IRGen that a base type of a C++ type might occupy less memory than its `sizeof`, specifically, it might only use `dsize` amount of memory.

rdar://147527755
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Mar 27, 2025
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan merged commit 63c24af into main Mar 28, 2025
5 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/frt-tail-padding branch March 28, 2025 12:26
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