summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-03-12 17:34:38 -0400
committerPeter Zhu <[email protected]>2024-03-13 09:55:52 -0400
commitc6089b56547daa61e0d20763bae3066fe311e91b (patch)
treec606846368c3d38d463f9ff005e807292c1473c0 /shape.c
parent88373fe2e85061f95532751bf311e33ab43cbcef (diff)
Don't allow SHAPE_T_OBJECT in rb_shape_alloc_new_child
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shape.c b/shape.c
index 63493be21b..c9ae080e27 100644
--- a/shape.c
+++ b/shape.c
@@ -474,11 +474,11 @@ rb_shape_alloc_new_child(ID id, rb_shape_t * shape, enum shape_type shape_type)
}
break;
case SHAPE_FROZEN:
- case SHAPE_T_OBJECT:
new_shape->next_iv_index = shape->next_iv_index;
break;
case SHAPE_OBJ_TOO_COMPLEX:
case SHAPE_ROOT:
+ case SHAPE_T_OBJECT:
rb_bug("Unreachable");
break;
}