Skip to content

Commit f145d76

Browse files
committed
.
1 parent cfec60d commit f145d76

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

zjit/src/codegen.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,8 @@ fn gen_insn(cb: &mut CodeBlock, jit: &mut JITState, asm: &mut Assembler, functio
612612
}
613613

614614
let out_opnd = match insn {
615+
&Insn::Const { val: Const::CBool(true) } => Opnd::UImm(1),
616+
&Insn::Const { val: Const::CBool(false) } => Opnd::UImm(0),
615617
&Insn::Const { val: Const::Value(val) } => gen_const_value(val),
616618
&Insn::Const { val: Const::CPtr(val) } => gen_const_cptr(val),
617619
&Insn::Const { val: Const::CInt64(val) } => gen_const_long(val),

0 commit comments

Comments
 (0)