Skip to content

Commit 993f067

Browse files
committed
py: In inline assembler, add return statement to fix flow logic.
1 parent e5315f7 commit 993f067

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/emitinlinethumb.c

+1
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ STATIC void emit_inline_thumb_op(emit_inline_asm_t *emit, qstr op, mp_uint_t n_a
474474
reg_dest = get_arg_reg(emit, op_str, pn_args[0], 7);
475475
reg_src = get_arg_reg(emit, op_str, pn_args[1], 7);
476476
asm_thumb_format_4(emit->as, op_code, reg_dest, reg_src);
477+
return;
477478
}
478479
// search table for ALU ops
479480
for (mp_uint_t i = 0; i < MP_ARRAY_SIZE(format_4_op_table); i++) {

0 commit comments

Comments
 (0)