should initialize irep->flags

parent 862f3c39
......@@ -2097,6 +2097,7 @@ scope_finish(codegen_scope *s, int idx)
mrb_add_irep(mrb, idx);
irep = mrb->irep[idx] = (mrb_irep *)mrb_malloc(mrb, sizeof(mrb_irep));
irep->flags = 0;
irep->idx = idx;
if (s->iseq) {
irep->iseq = (mrb_code *)codegen_realloc(s, s->iseq, sizeof(mrb_code)*s->pc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment