Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
29061ca6
Commit
29061ca6
authored
Mar 06, 2014
by
Christoph Mallon
Browse files
irgwalk: Do not use current_ir_graph in irg_walk_in_or_dep().
parent
daf1b9ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irgwalk.c
View file @
29061ca6
...
...
@@ -239,10 +239,11 @@ void irg_walk_in_or_dep(ir_node *node, irg_walk_func *pre, irg_walk_func *post,
{
assert
(
is_ir_node
(
node
));
ir_reserve_resources
(
current_ir_graph
,
IR_RESOURCE_IRN_VISITED
);
inc_irg_visited
(
current_ir_graph
);
ir_graph
*
const
irg
=
get_irn_irg
(
node
);
ir_reserve_resources
(
irg
,
IR_RESOURCE_IRN_VISITED
);
inc_irg_visited
(
irg
);
irg_walk_in_or_dep_2
(
node
,
pre
,
post
,
env
);
ir_free_resources
(
current_ir_graph
,
IR_RESOURCE_IRN_VISITED
);
ir_free_resources
(
irg
,
IR_RESOURCE_IRN_VISITED
);
}
void
irg_walk_in_or_dep_graph
(
ir_graph
*
irg
,
irg_walk_func
*
pre
,
irg_walk_func
*
post
,
void
*
env
)
...
...
Write
Preview
Supports
Markdown
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