Skip to content

"alt ret" hits an error in llvm: "cast<Ty>() argument of incompatible type!" #769

Closed
@jruderman

Description

@jruderman
fn a() -> int { alt ret 1 { 2 { 3 } } }
fn main() { a(); }

Assertion failed: (isa(Val) && "cast() argument of incompatible type!"), function cast, file llvm/include/llvm/Support/Casting.h, line 194.

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