diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-01-22 15:16:14 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-01-22 15:16:14 -0500 |
| commit | 789de5972bef671ff820a52dd97121c8984819a9 (patch) | |
| tree | 05f497b53d462ff64e3914fe0cd1d379f60e42b1 | |
| parent | 7db683222528ca4850fed57529679e5aa14b0a88 (diff) | |
[PRISM] Use PM_POP macro
| -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 359396567a..a700eb2262 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -2716,7 +2716,7 @@ pm_compile_call(rb_iseq_t *iseq, const pm_call_node_t *call_node, LINK_ANCHOR *c ADD_INSN1(ret, &dummy_line_node, putobject, INT2FIX(-1)); ADD_SEND_WITH_FLAG(ret, &dummy_line_node, idAREF, INT2FIX(1), INT2FIX(0)); ADD_INSN1(ret, &dummy_line_node, setn, INT2FIX(orig_argc + 2)); - ADD_INSN (ret, &dummy_line_node, pop); + PM_POP; } else if (!popped) { ADD_INSN1(ret, &dummy_line_node, setn, INT2FIX(orig_argc + 1)); @@ -3349,7 +3349,7 @@ pm_compile_for_node_index(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *c ADD_INSN(ret, &dummy_line_node, swap); ADD_LABEL(ret, not_ary); - ADD_INSN(ret, &dummy_line_node, pop); + PM_POP; ADD_LABEL(ret, not_single); ADD_SEQ(ret, writes); |
