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
54c484d6
Commit
54c484d6
authored
Jun 18, 2009
by
Matthias Braun
Browse files
transform assert to an if, as some students tend to hit it
[r26157]
parent
288b414e
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/ana/irdom.c
View file @
54c484d6
...
...
@@ -503,7 +503,11 @@ static void init_tmp_dom_info(ir_node *bl, tmp_dom_info *parent,
/* Iterate */
for
(
i
=
get_Block_n_cfg_outs_ka
(
bl
)
-
1
;
i
>=
0
;
--
i
)
{
ir_node
*
pred
=
get_Block_cfg_out_ka
(
bl
,
i
);
assert
(
is_Block
(
pred
));
/* can happen for half-optimized dead code (I've seen this in student
projects */
if
(
!
is_Block
(
pred
))
continue
;
init_tmp_dom_info
(
pred
,
tdi
,
tdi_list
,
used
,
n_blocks
);
}
}
...
...
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