Files
swift-mirror/test/Interop/Cxx/class/nonescapable-lifetimebound.swift
Joe Groff 78a5f358b4 Lower imported C structs and unions as addressable-for-dependencies.
C code is highly likely to want to use pointers as references between dependent
structs, and we would like to be able to readily map these to lifetime-dependent
Swift values. Making C types addressable-for-dependencies ensures that any function
producing a dependency on such a value receives a stable in-memory address for that
value, allowing borrows and inout accesses to always be representable as pointers.

rdar://153648393
2025-07-02 08:31:18 -07:00

6.1 KiB