mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
llvm issue with try when bool is combined #1467
This commit is contained in:
@@ -6908,6 +6908,7 @@ void llvm_emit_try_unwrap_chain(GenContext *c, BEValue *value, Expr *expr)
|
||||
Expr *link = exprs[i];
|
||||
BEValue res;
|
||||
llvm_emit_expr(c, &res, link);
|
||||
llvm_value_rvalue(c, &res);
|
||||
assert(llvm_value_is_bool(&res));
|
||||
llvm_emit_cond_br(c, &res, next_block, fail_block);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user