diff options
author | Peter Zhu <peter@peterzhu.ca> | 2025-07-31 21:18:26 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2025-07-31 23:22:25 -0400 |
commit | 1055e04e28a66b82d8c2118bb61763961ed4d1c9 (patch) | |
tree | c11e2e414a18cf6f50d871b9f2375a66dddfc20e /object.c | |
parent | 543f8dcad39190d1760bd329605f4a4130bb2a42 (diff) |
Remove useless set of dest_shape_id in rb_obj_copy_ivar
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -337,12 +337,10 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj) return; } - shape_id_t dest_shape_id = src_shape_id; shape_id_t initial_shape_id = RBASIC_SHAPE_ID(dest); - RUBY_ASSERT(RSHAPE_TYPE_P(initial_shape_id, SHAPE_ROOT)); - dest_shape_id = rb_shape_rebuild(initial_shape_id, src_shape_id); + shape_id_t dest_shape_id = rb_shape_rebuild(initial_shape_id, src_shape_id); if (UNLIKELY(rb_shape_too_complex_p(dest_shape_id))) { st_table *table = rb_st_init_numtable_with_size(src_num_ivs); rb_obj_copy_ivs_to_hash_table(obj, table); |