swift_allocEmptyBox missing in Embedded Swift #80056
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
No response
Reproduction
I tried to use this:
In itself it's nothing unusual, besides being a zero sized type.
The problem seems to be caused by this however:
I assume Swift is trying to "allocate" space for the escaping capture of the zero sized struct.
This causes linking to fail because
swift_allocEmptyBox
does not exist.Expected behavior
I expected the symbol to exist, much like the other class allocation functions. This one seems to have been omitted.
Environment
Apple Swift version 6.2-dev (LLVM 3a02857b159678d, Swift c91e295)
Target: arm64-apple-macosx15.0
Build config: +assertions
Additional information
No response
The text was updated successfully, but these errors were encountered: