Skip to content

Commit

Permalink
py/emitbc: Remove call to adjust Python stack by 0 entries.
Browse files Browse the repository at this point in the history
This call used to be needed when there was an `emit_bc_pre()` function that
needed to be called at the start of each emitted bytecode.  But in
8e7745e that function was removed and now
the call to `mp_emit_bc_adjust_stack_size()` does nothing when adjusting by
0 entries, so it can be removed.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Feb 29, 2024
1 parent 8692d26 commit 9a4be7d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion py/emitbc.c
Expand Up @@ -448,7 +448,6 @@ void mp_emit_bc_label_assign(emit_t *emit, mp_uint_t l) {
// should be emitted (until another unconditional flow control).
emit->suppress = false;

mp_emit_bc_adjust_stack_size(emit, 0);
if (emit->pass == MP_PASS_SCOPE) {
return;
}
Expand Down

0 comments on commit 9a4be7d

Please sign in to comment.