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

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

egorzhdan merged 2 commits into main from egorzhdan/frt-tail-padding
egorzhdan
egorzhdan105 days ago

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 [cxx-interop] Cleanup a test
2abed96e
egorzhdan [cxx-interop] Layout reference types that use tail padding of their b…
ba8ba57c
egorzhdan egorzhdan added c++ interop
egorzhdan egorzhdan requested a review from zoecarver zoecarver 105 days ago
egorzhdan egorzhdan requested a review from Xazax-hun Xazax-hun 105 days ago
egorzhdan egorzhdan requested a review from j-hui j-hui 105 days ago
egorzhdan egorzhdan requested a review from fahadnayyar fahadnayyar 105 days ago
egorzhdan egorzhdan requested a review from susmonteiro susmonteiro 105 days ago
egorzhdan egorzhdan requested a review from hnrklssn hnrklssn 105 days ago
egorzhdan egorzhdan requested a review from rjmccall rjmccall 105 days ago
egorzhdan
egorzhdan105 days ago

@swift-ci please test

Xazax-hun
Xazax-hun approved these changes on 2025-03-28
egorzhdan egorzhdan merged 63c24afd into main 104 days ago
egorzhdan egorzhdan deleted the egorzhdan/frt-tail-padding branch 104 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone