summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-11-26 16:15:55 +1100
committerDamien George <damien.p.george@gmail.com>2016-11-26 16:15:55 +1100
commite6cf5fb2cc43a94210203f4d45d38f29f33a82a8 (patch)
treeaa3ce9730463b65f7090692c66fca64082960f1e /py
parenta4f96c8c2aaddc457a744eda6aaf5cdfb614bc6c (diff)
downloadmicropython-e6cf5fb2cc43a94210203f4d45d38f29f33a82a8.tar.gz
micropython-e6cf5fb2cc43a94210203f4d45d38f29f33a82a8.zip
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.
Diffstat (limited to 'py')
-rw-r--r--py/compile.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/py/compile.c b/py/compile.c
index 6efd15effb..bc8d8d16d7 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -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"