Use rb_bug in rb_iseq_node_id

Use rb_bug instead of VM_ASSERT(0).
This commit is contained in:
Peter Zhu 2026-10-27 21:00:27 +09:00
parent c1077a044d
commit 73397ad027
Notes: git 2026-11-02 00:37:48 +00:00

3
iseq.c
View File

@ -2617,8 +2617,7 @@ rb_iseq_node_id(const rb_iseq_t *iseq, size_t pos)
code_pos += len;
}
VM_ASSERT(0); /* node_ids out of sync with the instruction sequence */
return -1;
rb_bug("node_id out of sync with iseq");
}
#endif