diff options
author | Damien <damien.p.george@gmail.com> | 2013-11-17 13:16:36 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-11-17 13:16:36 +0000 |
commit | 0446a0d76d6949423a77286522c116d35a7c5f31 (patch) | |
tree | ea6e5ab6983974b64d7eaad9853642449dbd5a57 /py/compile.c | |
parent | 6d4f3462c4c3bb8a3d5b60482766b9c06891dc1a (diff) |
Change some debugging/output messages for native code generation.
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/compile.c b/py/compile.c index a01f5f4c5..f6bbe1ab3 100644 --- a/py/compile.c +++ b/py/compile.c @@ -1409,7 +1409,7 @@ void compile_for_stmt(compiler_t *comp, py_parse_node_struct_t *pns) { // this bit optimises: for <x> in range(...), turning it into an explicitly incremented variable // this is actually slower, but uses no heap memory // for viper it will be much, much faster - if (PY_PARSE_NODE_IS_STRUCT_KIND(pns->nodes[1], PN_power)) { + if (/*comp->scope_cur->emit_options == EMIT_OPT_VIPER &&*/ PY_PARSE_NODE_IS_STRUCT_KIND(pns->nodes[1], PN_power)) { py_parse_node_struct_t *pns_it = (py_parse_node_struct_t*)pns->nodes[1]; if (PY_PARSE_NODE_IS_ID(pns_it->nodes[0]) && PY_PARSE_NODE_IS_STRUCT_KIND(pns_it->nodes[1], PN_trailer_paren) && PY_PARSE_NODE_IS_NULL(pns_it->nodes[2])) { py_parse_node_t pn_range_args = ((py_parse_node_struct_t*)pns_it->nodes[1])->nodes[0]; |