summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitpass1.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-07 17:24:22 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-07 17:24:22 +0100
commit36db6bcf54fd32a247c85719832a9cf43e124ab5 (patch)
tree9d23c6efc069a8410d894b2a27caf88b5f2bfba8 /py/emitpass1.c
parentca25c15d560f3f5337819bac65832cccc4752495 (diff)
downloadmicropython-36db6bcf54fd32a247c85719832a9cf43e124ab5.tar.gz
micropython-36db6bcf54fd32a247c85719832a9cf43e124ab5.zip
py, compiler: Improve passes; add an extra pass for native emitter.
Diffstat (limited to 'py/emitpass1.c')
-rw-r--r--py/emitpass1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitpass1.c b/py/emitpass1.c
index 48b9aa69e9..2e76420a21 100644
--- a/py/emitpass1.c
+++ b/py/emitpass1.c
@@ -56,7 +56,7 @@ STATIC void emit_pass1_dummy(emit_t *emit) {
}
STATIC void emit_pass1_start_pass(emit_t *emit, pass_kind_t pass, scope_t *scope) {
- assert(pass == PASS_1);
+ assert(pass == MP_PASS_SCOPE);
emit->scope = scope;
}