Skip to content

Commit aaf671d

Browse files
Fix typo in Fast JIT's BUILD_COND_BR Macro (#2092)
1 parent 48429da commit aaf671d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/iwasm/fast-jit/fe/jit_emit_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#define BUILD_COND_BR(value_if, block_then, block_else) \
3232
do { \
33-
if (!GEN_INSN(CMP, cc->cmp_reg, value_if, NEW_CONST(cc, 0)) \
33+
if (!GEN_INSN(CMP, cc->cmp_reg, value_if, NEW_CONST(I32, 0)) \
3434
|| !GEN_INSN(BNE, cc->cmp_reg, jit_basic_block_label(block_then), \
3535
jit_basic_block_label(block_else))) { \
3636
jit_set_last_error(cc, "generate bne insn failed"); \

0 commit comments

Comments
 (0)