Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jruderman opened this issue Jul 29, 2011 · 0 comments
Closed

Comments

@jruderman
Copy link
Contributor

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.

@ghost ghost assigned catamorphism Jul 29, 2011
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
Fix expression and statement grammar.
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
* Add fromstack utility

* Add addrspace fromstack
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants