Skip to content

Reg->C: ALLOC_CONSTR_TUPLE calls are generated with the incorrect number of arguments #2588

@paulcadman

Description

@paulcadman

We wish to use the MemRepTuple constructor representation in the Nockma backend.

However the code emitted by the Reg->C translation is incorrect:

Reg.MemRepTuple ->
stmtsAllocConstr a "ALLOC_CONSTR_TUPLE" "FIELD"

Specifically an ALLOC_CONSTR_TUPLE call is generated with too many arguments.

/private/var/folders/z5/h_kmf4q1139f0gqhj1_hqd4w0000gn/T/tmp-b0a3b6f6c4b6a816/test055.c:56:48: error: too many arguments provided to function-like macro invocation
   56 |         ALLOC_CONSTR_TUPLE(juvix_temp_var, 11, 2);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions