Check if irep->reps is NULL
@@ -545,10 +545,12 @@ codedump_recur(mrb_state *mrb, const mrb_irep *irep)
int i;
codedump(mrb, irep);
+ if (irep->reps) {
for (i=0; i<irep->rlen; i++) {
codedump_recur(mrb, irep->reps[i]);
}
}
+}
#endif
void
