summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-01-30 09:37:52 -0500
committerPeter Zhu <peter@peterzhu.ca>2024-01-30 10:29:11 -0500
commitc85e28d12a4855e64271f0be4510b63053b628b7 (patch)
tree2fba7c672bc84e173c7ca984a527903f1a23462c
parent846f87ee0aad77424ce513f0b45a19d50050770f (diff)
[PRISM] Remove unused variable
-rw-r--r--prism_compile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/prism_compile.c b/prism_compile.c
index 46ce25e485..e325a6e118 100644
--- a/prism_compile.c
+++ b/prism_compile.c
@@ -6512,7 +6512,6 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
// We will assign these values now, if applicable, and use them for
// the ISEQs on these multis
- int required_multis_hidden_index = local_index;
int post_multis_hidden_index = 0;
// Here we figure out local table indices and insert them in to the
@@ -7026,7 +7025,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
const pm_node_t *required = requireds_list->nodes[i];
if (PM_NODE_TYPE_P(required, PM_MULTI_TARGET_NODE)) {
- ADD_GETLOCAL(ret, &dummy_line_node, table_size - required_multis_hidden_index - (int) i, 0);
+ ADD_GETLOCAL(ret, &dummy_line_node, table_size - (int)i, 0);
pm_compile_destructured_param_writes(iseq, (const pm_multi_target_node_t *) required, ret, scope_node);
}
}