From: Jérémie Astor Date: Wed, 16 Dec 2020 16:39:38 +0000 (+0100) Subject: :art: Improve late checking, again X-Git-Tag: nightly~1105^2 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e21da2b7e9b1a793e3bdea22c0e819ca31c1560c;p=gwion.git :art: Improve late checking, again --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 9d584aa3..b7143517 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -541,7 +541,7 @@ ANN m_bool emit_array_access(const Emitter emit, struct ArrayAccessInfo *const i // look mum no pos struct Op_Import opi = { .op=insert_symbol("@array"), .lhs=info->array.exp->info->type, .rhs=info->array.type, .data=(uintptr_t)info, .op_type=op_array }; - if(type_ref(info->array.type)) { + if(!info->is_var && (GET_FLAG(info->array.type, abstract) || type_ref(info->array.type))) { const Instr instr = emit_add_instr(emit, GWOP_EXCEPT); instr->m_val = -SZ_INT; }