Skip to content

alt discriminant of type bang -> "Ptr must be a pointer to Val type!" #794

Closed
@jruderman

Description

@jruderman
fn f() -> ! { fail }
fn g() -> int { alt f() { true { 1 } false { 0 } }; }
fn main() { g(); }

Assertion failed: (getOperand(0)->getType() == cast(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file Instructions.cpp, line 968.

Maybe the same as issue #777

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