From 81baaae5754d67d5e2900523b8c7c6e93d0a51fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 2 Sep 2021 21:18:39 +0200 Subject: [PATCH] :bug: Fix previous commit --- src/vm/vm.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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; -- 2.43.0