Check if irep->reps is NULL in lv_defined_p
MODIFY
src/dump.c
src/dump.c
@@ -773,9 +773,11 @@ lv_defined_p(const mrb_irep *irep)
if (irep->lv) { return TRUE; }
+ if (irep->reps) {
for (i = 0; i < irep->rlen; ++i) {
if (lv_defined_p(irep->reps[i])) { return TRUE; }
}
+ }
return FALSE;
}

Check if irep->reps is NULL in lv_defined_p