diff options
author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-11-02 15:08:03 -0300 |
---|---|---|
committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-11-02 17:46:43 -0300 |
commit | 7f18448a8e086b79a806acae5dbdd967f321c783 (patch) | |
tree | 3575d6ae254c19aceadeb213adae980dc41be77f /prism_compile.c | |
parent | d8bdb15a8b0da0d4ff2338bbb8087fbeb0a17b27 (diff) |
[PRISM] Fix popped for CallOperatorWriteNode
Diffstat (limited to 'prism_compile.c')
-rw-r--r-- | prism_compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prism_compile.c b/prism_compile.c index 290d5e686d..f4d69f2384 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -1655,7 +1655,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, flag = VM_CALL_FCALL; } - PM_COMPILE(call_operator_write_node->receiver); + PM_COMPILE_NOT_POPPED(call_operator_write_node->receiver); ID write_name_id = pm_constant_id_lookup(scope_node, call_operator_write_node->write_name); ID read_name_id = pm_constant_id_lookup(scope_node, call_operator_write_node->read_name); @@ -1664,7 +1664,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, ADD_SEND_WITH_FLAG(ret, &dummy_line_node, read_name_id, INT2FIX(0), INT2FIX(flag)); - PM_COMPILE(call_operator_write_node->value); + PM_COMPILE_NOT_POPPED(call_operator_write_node->value); ADD_SEND(ret, &dummy_line_node, operator_id, INT2FIX(1)); if (!popped) { |