Skip to content

[Swift Interop] Lowering fixed buffers #107620

Open
@jkurdek

Description

[StructLayout(LayoutKind.Sequential, Size = 16)]
public unsafe struct Data
{
    public fixed byte bytes[16];
}

Running the swift lowering algorithm on the following struct results in incorrect lowering. I did debug on mono and the resulting lowering is a single unsigned byte. I would expect this to be lowered into two int64.

@jkoritzinsky should such constructs be supported by the swift struct lowering algorithm?

cc: @kotlarmilos

Metadata

Assignees

Type

No type

Projects

  • Status

    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions