From 2bf7c092225645d8c5b15e536afdce39e3593e42 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 9 Apr 2014 15:26:46 +0100 Subject: py: Properly implement deletion of locals and derefs, and detect errors. Needed to reinstate 2 delete opcodes, to specifically check that a local is not deleted twice. --- py/emitcommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/emitcommon.c') diff --git a/py/emitcommon.c b/py/emitcommon.c index f7494668e..30f5ace92 100644 --- a/py/emitcommon.c +++ b/py/emitcommon.c @@ -25,7 +25,7 @@ void emit_common_load_id(emit_t *emit, const emit_method_table_t *emit_method_ta } else if (id->kind == ID_INFO_KIND_GLOBAL_EXPLICIT) { EMIT(load_global, qstr); } else if (id->kind == ID_INFO_KIND_LOCAL) { - EMIT(load_fast, qstr, id->local_num); + EMIT(load_fast, qstr, id->flags, id->local_num); } else if (id->kind == ID_INFO_KIND_CELL || id->kind == ID_INFO_KIND_FREE) { EMIT(load_deref, qstr, id->local_num); } else { -- cgit v1.2.3