Skip to content

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

Closed

Description

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.

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

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