aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2024-04-06 09:39:45 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2024-04-06 18:20:31 +0900
commitf022a700bf57105fca03b537284ed7bf77e8fff7 (patch)
tree55826b2bec163cc7ca2c5bddeb295f76e13fb934 /compile.c
parentdae503874d3aa054c4e7ae86e03d1338ab40ddc2 (diff)
downloadruby-f022a700bf57105fca03b537284ed7bf77e8fff7.tar.gz
Remove imemo type check for NODE
In the past, `rb_iseq_compile_node` received `NODE *` and `struct vm_ifunc *` as `node`. But after e743a35, the function only receives `NODE *`. This commit removes imemo type check to reduce the dependence on `VALUE flags` of `struct RNode`.
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/compile.c b/compile.c
index 852825c82b..dfdbb8f644 100644
--- a/compile.c
+++ b/compile.c
@@ -869,10 +869,6 @@ rb_iseq_compile_node(rb_iseq_t *iseq, const NODE *node)
DECL_ANCHOR(ret);
INIT_ANCHOR(ret);
- if (IMEMO_TYPE_P(node, imemo_ifunc)) {
- rb_raise(rb_eArgError, "unexpected imemo_ifunc");
- }
-
if (node == 0) {
NO_CHECK(COMPILE(ret, "nil", node));
iseq_set_local_table(iseq, 0);