Skip to content

nil in native hits LLVM assert "Invalid cast!" #901

Closed
@jruderman

Description

@jruderman
native "cdecl" mod libc = "" {
    fn f(x: ());
}
fn main() { }

fails in LLVM:

Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file Instructions.cpp, line 2226.

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