Commit 110eaaea authored by Marius Wachtler's avatar Marius Wachtler

Merge pull request #1041 from undingen/gen_gc_fix

Fix crash inside BoxedGenerator::gcHandler
parents e798f40f cc5f4cd7
......@@ -436,11 +436,12 @@ void BoxedGenerator::gcHandler(GCVisitor* v, Box* b) {
v->visit(&g->arg2);
if (num_args >= 3)
v->visit(&g->arg3);
if (g->args)
if (g->args) {
v->visit(&g->args);
if (num_args > 3)
v->visitPotentialRange(reinterpret_cast<void**>(&g->args->elts[0]),
reinterpret_cast<void**>(&g->args->elts[num_args - 3]));
if (num_args > 3)
v->visitPotentialRange(reinterpret_cast<void**>(&g->args->elts[0]),
reinterpret_cast<void**>(&g->args->elts[num_args - 3]));
}
if (g->returnValue)
v->visit(&g->returnValue);
if (g->exception.type)
......
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