Commit 75d7aaff authored by Kevin Modzelewski's avatar Kevin Modzelewski

doh, silly bug in closureGCHandler

parent 3c15e3e5
......@@ -845,6 +845,7 @@ public:
}
virtual bool visit_functiondef(AST_FunctionDef* node) {
assert(node->args->defaults.size() == 0);
push_back(node);
return true;
}
......
......@@ -256,7 +256,7 @@ extern "C" void conservativeGCHandler(GCVisitor* v, void* p) {
extern "C" void closureGCHandler(GCVisitor* v, void* p) {
boxGCHandler(v, p);
BoxedClosure* c = (BoxedClosure*)v;
BoxedClosure* c = (BoxedClosure*)p;
if (c->parent)
v->visit(c->parent);
}
......
......@@ -290,7 +290,7 @@ if __name__ == "__main__":
run_memcheck = False
start = 1
opts, patterns = getopt.getopt(sys.argv[1:], "j:a:t:mR:k")
opts, patterns = getopt.gnu_getopt(sys.argv[1:], "j:a:t:mR:k")
for (t, v) in opts:
if t == '-m':
run_memcheck = True
......
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