Commit fc4bd556 authored by Daniel Gröber (dxld)'s avatar Daniel Gröber (dxld) Committed by Marge Bot

rts: TraverseHeap: Allow visit_cb to be NULL

parent 79bb81fe
......@@ -1207,8 +1207,10 @@ inner_loop:
// If this is the first visit to c, initialize its data.
bool first_visit = traverseMaybeInitClosureData(ts, c);
bool traverse_children
= visit_cb(c, cp, data, first_visit, &accum, &child_data);
bool traverse_children = first_visit;
if(visit_cb)
traverse_children = visit_cb(c, cp, data, first_visit,
&accum, &child_data);
if(!traverse_children)
goto loop;
......
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