Skip to content

assertion failure in codegen with union of singletons #35793

Description

julia> struct X
       x::Union{Nothing,Missing}
       end

julia> X(nothing)
julia: /home/jeff/src/julia/src/cgutils.cpp:705: llvm::Type* _julia_struct_to_llvm(jl_codegen_params_t*, jl_value_t*, jl_unionall_t*, bool*, bool): Assertion `NumATy > 0' failed.

The assertion is new in 1.5. It looks to me like the assertion can possibly just be removed, but I'm not sure. cc @vtjnash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    compiler:codegenGeneration of LLVM IR and native coderegressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions