Skip to content

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.

3 participants