Skip to content

LLVM assert "May only branch on boolean predicates!" with bang predicate #776

Closed
@jruderman

Description

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

Assertion failed: (getCondition()->getType()->isIntegerTy(1) && "May only branch on boolean predicates!"), function AssertOK, file Instructions.cpp, line 669.

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