summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-02-29 11:15:37 +1100
committerDamien George <damien@micropython.org>2024-02-29 11:15:37 +1100
commit9a4be7d7b36b55fba5584d0ffb751e6b431324cc (patch)
treef02a14176d73b33fca53632f898d301c4520de63 /py
parent8692d2602a7775fea22d75ebf5b50971dc2b968f (diff)
downloadmicropython-9a4be7d7b36b55fba5584d0ffb751e6b431324cc.tar.gz
micropython-9a4be7d7b36b55fba5584d0ffb751e6b431324cc.zip
py/emitbc: Remove call to adjust Python stack by 0 entries.
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 8e7745eb315cdaf7dec033891f88e091ab4e016e 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>
Diffstat (limited to 'py')
-rw-r--r--py/emitbc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/py/emitbc.c b/py/emitbc.c
index ca5f07085b..85fc5f218b 100644
--- a/py/emitbc.c
+++ b/py/emitbc.c
@@ -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;
}