Skip to content

Commit

Permalink
py/compile: Remove comment about TODO for short circuiting for if-stmt.
Browse files Browse the repository at this point in the history
Short circuiting is handled correctly by c_if_cond, and constants within
short-circuit expressions are optimised by the parser.
  • Loading branch information
dpgeorge committed Nov 26, 2016
1 parent a4f96c8 commit e6cf5fb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions py/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,8 +1203,6 @@ STATIC void compile_assert_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) {
}

STATIC void compile_if_stmt(compiler_t *comp, mp_parse_node_struct_t *pns) {
// TODO proper and/or short circuiting

uint l_end = comp_next_label(comp);

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

0 comments on commit e6cf5fb

Please sign in to comment.