Commit 84f0d34f authored by Kevin Modzelewski's avatar Kevin Modzelewski

A fix to the ast interpreter gc visitor

parent 1b7a412c
...@@ -255,7 +255,7 @@ void ASTInterpreter::gcHandler(GCVisitor* visitor, Box* box) { ...@@ -255,7 +255,7 @@ void ASTInterpreter::gcHandler(GCVisitor* visitor, Box* box) {
ASTInterpreter* interp = (ASTInterpreter*)box; ASTInterpreter* interp = (ASTInterpreter*)box;
auto&& vec = interp->sym_table.vector(); auto&& vec = interp->sym_table.vector();
visitor->visitRange((void* const*)&vec[0], (void* const*)&vec[interp->sym_table.size()]); visitor->visitRange((void* const*)&vec[0], (void* const*)&vec[vec.size()]);
visitor->visit(interp->passed_closure); visitor->visit(interp->passed_closure);
visitor->visit(interp->created_closure); visitor->visit(interp->created_closure);
visitor->visit(interp->generator); visitor->visit(interp->generator);
......
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