diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-07 08:50:38 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-07 08:50:38 +0100 |
commit | ce8b4e87494a11f389de7629e82043d6fb70284e (patch) | |
tree | d448f6ed10e8897f23ab52a09aa3805f550eab7f /py/compile.c | |
parent | 2c407bcf2007b1c899bbee45b1a139c27a2dc47b (diff) |
py: Combine continuous block of emit steps into with_cleanup emit call.
Because different emitters need to handle with-cleanup in different ways.
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/py/compile.c b/py/compile.c index 9213fd22f..aef59fb25 100644 --- a/py/compile.c +++ b/py/compile.c @@ -1640,10 +1640,7 @@ STATIC void compile_with_stmt_helper(compiler_t *comp, int n, mp_parse_node_t *n // compile additional pre-bits and the body compile_with_stmt_helper(comp, n - 1, nodes + 1, body); // finish this with block - EMIT(pop_block); - EMIT_ARG(load_const_tok, MP_TOKEN_KW_NONE); - EMIT_ARG(label_assign, l_end); - EMIT(with_cleanup); + EMIT_ARG(with_cleanup, l_end); compile_decrease_except_level(comp); EMIT(end_finally); } |