@@ -731,11 +731,6 @@ static void emit_native_store_attr(emit_t *emit, qstr qstr) {
731731 assert (0 );
732732}
733733
734- static void emit_native_store_locals (emit_t * emit ) {
735- // not supported
736- assert (0 );
737- }
738-
739734static void emit_native_store_subscr (emit_t * emit ) {
740735 // depends on type of subject:
741736 // - integer, function, pointer to structure: error
@@ -749,6 +744,13 @@ static void emit_native_store_subscr(emit_t *emit) {
749744 emit_call (emit , RT_F_STORE_SUBSCR , rt_store_subscr );
750745}
751746
747+ static void emit_native_store_locals (emit_t * emit ) {
748+ // not needed
749+ vtype_kind_t vtype ;
750+ emit_pre_pop_reg (emit , & vtype , REG_TEMP0 );
751+ emit_post (emit );
752+ }
753+
752754static void emit_native_delete_fast (emit_t * emit , qstr qstr , int local_num ) {
753755 // not implemented
754756 // could support for Python types, just set to None (so GC can reclaim it)
@@ -1146,8 +1148,8 @@ const emit_method_table_t EXPORT_FUN(method_table) = {
11461148 emit_native_store_global ,
11471149 emit_native_store_deref ,
11481150 emit_native_store_attr ,
1149- emit_native_store_locals ,
11501151 emit_native_store_subscr ,
1152+ emit_native_store_locals ,
11511153 emit_native_delete_fast ,
11521154 emit_native_delete_name ,
11531155 emit_native_delete_global ,
0 commit comments