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
d3a434d2
Commit
d3a434d2
authored
Mar 25, 2012
by
Christoph Mallon
Browse files
Assert that [gs]et_{,r_}cur_block() are only called in phase_building.
parent
a93219d7
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/ir/ircons.c
View file @
d3a434d2
...
...
@@ -527,6 +527,7 @@ void set_cur_block(ir_node *target)
void
set_r_cur_block
(
ir_graph
*
irg
,
ir_node
*
target
)
{
assert
(
get_irg_phase_state
(
irg
)
==
phase_building
);
assert
(
target
==
NULL
||
get_irn_mode
(
target
)
==
mode_BB
);
assert
(
target
==
NULL
||
get_irn_irg
(
target
)
==
irg
);
irg
->
current_block
=
target
;
...
...
@@ -534,6 +535,7 @@ void set_r_cur_block(ir_graph *irg, ir_node *target)
ir_node
*
get_r_cur_block
(
ir_graph
*
irg
)
{
assert
(
get_irg_phase_state
(
irg
)
==
phase_building
);
return
irg
->
current_block
;
}
...
...
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