projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac66aa3
)
fix crash
author
Matthias Braun
<matze@braunis.de>
Wed, 29 Aug 2012 14:18:33 +0000
(16:18 +0200)
committer
Matthias Braun
<matze@braunis.de>
Wed, 29 Aug 2012 14:18:33 +0000
(16:18 +0200)
ir/opt/combo.c
patch
|
blob
|
history
diff --git
a/ir/opt/combo.c
b/ir/opt/combo.c
index
27aa76a
..
45f1250
100644
(file)
--- a/
ir/opt/combo.c
+++ b/
ir/opt/combo.c
@@
-606,7
+606,7
@@
static void sort_irn_outs(node_t *node)
unsigned n_outs = get_irn_n_outs(irn);
qsort(irn->o.out->edges, n_outs, sizeof(irn->o.out->edges[0]),
cmp_def_use_edge);
- node->max_user_input =
irn->o.out->edges[n_outs-1].pos
;
+ node->max_user_input =
n_outs > 0 ? irn->o.out->edges[n_outs-1].pos : -1
;
} /* sort_irn_outs */
/**