Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
d7e3b36a
Commit
d7e3b36a
authored
Oct 14, 2015
by
Damien George
Browse files
py/compile: Remove unnecessary label in compilation of for statement.
parent
fcce1483
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/compile.c
View file @
d7e3b36a
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment