Skip to content

ret-bang variant trips llvm assert "Invalid constantexpr cast!" #777

Closed
@jruderman

Description

@jruderman
fn my_err(s: str) -> ! { log_err s; fail; }
fn main() { my_err("bye") == 3u; }

Assertion failed: (CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!"), function getCast, file Constants.cpp, line 1217.

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