1
0
forked from M-Labs/nac3

core/codegen/stmt: Convert assertion values to i1

This commit is contained in:
David Mak 2024-07-12 14:07:02 +08:00
parent 6c1d8ac001
commit 9b5fb69875

View File

@ -1637,7 +1637,7 @@ pub fn gen_stmt<G: CodeGenerator>(
};
ctx.make_assert_impl(
generator,
test.into_int_value(),
generator.bool_to_i1(ctx, test.into_int_value()),
"0:AssertionError",
err_msg,
[None, None, None],