From: Jérémie Astor Date: Thu, 2 Sep 2021 19:18:39 +0000 (+0200) Subject: :bug: Fix previous commit X-Git-Tag: nightly~470^2~22 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=81baaae5754d67d5e2900523b8c7c6e93d0a51fb;p=gwion.git :bug: Fix previous commit --- diff --git a/src/vm/vm.c b/src/vm/vm.c index 6e1a0dae..d2041e19 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -480,7 +480,7 @@ vm_run(const VM *vm) { // lgtm [cpp/use-of-goto] &&sporkini, &&forkini, &&sporkfunc, &&sporkmemberfptr, &&sporkexp, &&sporkend, &&brancheqint, &&branchneint, &&brancheqfloat, &&branchnefloat, &&unroll, &&arrayappend, &&autounrollinit, &&autoloop, - &&arraytop, &&arrayaccess, &&arrayget, &&arrayaddr, &&arraygetobj, &&newobj, &&addref, + &&arraytop, &&arrayaccess, &&arrayget, &&arrayaddr, &&newobj, &&addref, &&addrefaddr, &&structaddref, &&structaddrefaddr, &&objassign, &&assign, &&remref, &&except, &&allocmemberaddr, &&dotmember, &&dotfloat, &&dotother, &&dotaddr, &&unioncheck, &&unionint, &&unionfloat, @@ -1065,15 +1065,6 @@ vm_run(const VM *vm) { // lgtm [cpp/use-of-goto] m_vector_addr(ARRAY(a.obj), *(m_int *)(reg + VAL)); PRAGMA_POP() DISPATCH() - arraygetobj: - PRAGMA_PUSH() - m_vector_get(ARRAY(a.obj), *(m_int *)(reg + VAL), (reg + IVAL2)); - if(!*(M_Object*)(reg + IVAL2)) { - handle(shred, "EmptyArrayAccess"); - continue; - } - PRAGMA_POP() - DISPATCH() newobj: *(M_Object *)reg = new_object(vm->gwion->mp, NULL, (Type)VAL2); reg += SZ_INT;