Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
fa1f14ad
Commit
fa1f14ad
authored
Jul 26, 2010
by
Matthias Braun
Browse files
verify that start black has no predecessors
[r27814]
parent
1c5a82cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irvrfy.c
View file @
fa1f14ad
...
...
@@ -881,6 +881,10 @@ static int verify_node_Block(ir_node *n, ir_graph *irg)
"Block node must have a mode_X predecessor"
,
0
);
}
if
(
n
==
get_irg_start_block
(
irg
))
{
ASSERT_AND_RET
(
get_Block_n_cfgpreds
(
n
)
==
0
,
"Start Block node"
,
0
);
}
if
(
n
==
get_irg_end_block
(
irg
)
&&
get_irg_phase_state
(
irg
)
!=
phase_backend
)
/* End block may only have Return, Raise or fragile ops as preds. */
for
(
i
=
get_Block_n_cfgpreds
(
n
)
-
1
;
i
>=
0
;
--
i
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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