Fix optimization of dynamic variable reading.

[INTERPRETER]
* BUG: Fix optimization of dynamic variable reading.
This commit is contained in:
Benoît Minisini 2022-10-01 20:03:37 +02:00
parent 4b778bd2ce
commit 5d1db11ab3

View file

@ -2588,6 +2588,8 @@ _PUSH_VARIABLE:
{
void *object = SP[-1]._object.object;
if (!object)
THROW_NULL();
CLASS_DESC *desc = SP[-1]._object.class->table[PC[1]].desc;
my_VALUE_class_read(desc->variable.class, &SP[-1], (char *)object + desc->variable.offset, desc->variable.ctype, object);
//BORROW(&SP[-1]);