Skip to content

Regression when generating ref.func? #5136

Closed
@dcodeIO

Description

@dcodeIO

Our preliminary reference types support so far created ref.func expressions with a funcref type, like so

BinaryenRefFunc(theModule, theName, BinaryenTypeFuncref());

which used to work (both in codegen and execution), but now (during optimizing?) seems to hit the assertion at

binaryen/src/literal.h

Lines 81 to 84 in 5a938f4

explicit Literal(Name func, HeapType type)
: func(func), type(type, NonNullable) {
assert(type.isSignature());
}

Is this expected, i.e. that funcref is !type.isSignature() (and now requires a concrete GC type, even if only reftypes is enabled)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions