diff options
Diffstat (limited to 'py/emitpass1.c')
-rw-r--r-- | py/emitpass1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/emitpass1.c b/py/emitpass1.c index d2f7aaa53a..6088489410 100644 --- a/py/emitpass1.c +++ b/py/emitpass1.c @@ -91,7 +91,8 @@ STATIC void emit_pass1_store_id(emit_t *emit, qstr qstr) { } STATIC void emit_pass1_delete_id(emit_t *emit, qstr qstr) { - get_id_for_modification(emit->scope, qstr); + id_info_t *id = get_id_for_modification(emit->scope, qstr); + id->flags |= ID_FLAG_IS_DELETED; } const emit_method_table_t emit_pass1_method_table = { |