projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
288b414
)
transform assert to an if, as some students tend to hit it
author
Matthias Braun
<matze@braunis.de>
Thu, 18 Jun 2009 14:47:25 +0000
(14:47 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 18 Jun 2009 14:47:25 +0000
(14:47 +0000)
[r26157]
ir/ana/irdom.c
patch
|
blob
|
history
diff --git
a/ir/ana/irdom.c
b/ir/ana/irdom.c
index
d9a4dc7
..
4d5ef26
100644
(file)
--- a/
ir/ana/irdom.c
+++ b/
ir/ana/irdom.c
@@
-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);
}
}