summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-23 21:42:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-23 21:42:05 +0900
commit721d154e2f81c65bd7f1bfd9eff6759b015b123e (patch)
tree8da195c22252f8e77985b47ff79d1019d1b7406b /compile.c
parent98a8a496bab077b22290dd25d7f8453d1e73a1ac (diff)
Remove duplicate code for internal arrays
Internal arrays are now created hidden from the start.
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index be974d571a..c17c97adbb 100644
--- a/compile.c
+++ b/compile.c
@@ -12357,8 +12357,7 @@ ibf_load_object_array(const struct ibf_load *load, const struct ibf_object_heade
rb_ary_push(ary, ibf_load_object(load, index));
}
- if (header->internal) rb_obj_hide(ary);
- if (header->frozen) rb_obj_freeze(ary);
+ if (header->frozen) rb_obj_freeze(ary);
return ary;
}