Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alfredo Di Napoli
GHC
Commits
fc4bd556
Commit
fc4bd556
authored
Jul 17, 2019
by
Daniel Gröber (dxld)
Committed by
Marge Bot
Feb 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rts: TraverseHeap: Allow visit_cb to be NULL
parent
79bb81fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
rts/TraverseHeap.c
rts/TraverseHeap.c
+4
-2
No files found.
rts/TraverseHeap.c
View file @
fc4bd556
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment