Revert "Check if irep->reps is NULL in lv_defined_p"

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-11-18 18:47:46 +09:00
committed by GitHub
parent e7d0baaf3b
commit a211a326de
+2 -4
View File
@@ -773,10 +773,8 @@ 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; }
}
for (i = 0; i < irep->rlen; ++i) {
if (lv_defined_p(irep->reps[i])) { return TRUE; }
}
return FALSE;