py/compile: Remove unnecessary label in compilation of for statement.
This commit is contained in:
parent
fcce1483fa
commit
d7e3b36a09
@ -1424,7 +1424,6 @@ STATIC void compile_for_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) {
|
||||
comp->break_label |= MP_EMIT_BREAK_FROM_FOR;
|
||||
|
||||
uint pop_label = comp_next_label(comp);
|
||||
uint end_label = comp_next_label(comp);
|
||||
|
||||
compile_node(comp, pns->nodes[1]); // iterator
|
||||
EMIT(get_iter);
|
||||
@ -1444,7 +1443,6 @@ STATIC void compile_for_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) {
|
||||
compile_node(comp, pns->nodes[3]); // else (not tested)
|
||||
|
||||
EMIT_ARG(label_assign, break_label);
|
||||
EMIT_ARG(label_assign, end_label);
|
||||
}
|
||||
|
||||
STATIC void compile_try_except(compiler_t *comp, mp_parse_node_t pn_body, int n_except, mp_parse_node_t *pn_excepts, mp_parse_node_t pn_else) {
|
||||
|
Loading…
Reference in New Issue
Block a user