Skip to content

Commit e6cf5fb

Browse files
committed
py/compile: Remove comment about TODO for short circuiting for if-stmt.
Short circuiting is handled correctly by c_if_cond, and constants within short-circuit expressions are optimised by the parser.
1 parent a4f96c8 commit e6cf5fb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

py/compile.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,8 +1203,6 @@ STATIC void compile_assert_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) {
12031203
}
12041204

12051205
STATIC void compile_if_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) {
1206-
// TODO proper and/or short circuiting
1207-
12081206
uint l_end = comp_next_label(comp);
12091207

12101208
// optimisation: don't emit anything when "if False"

0 commit comments

Comments
 (0)