projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7344dc3
)
assert that heur 3 assigns an existing register
author
Matthias Braun
<matze@braunis.de>
Wed, 6 Sep 2006 09:16:34 +0000
(09:16 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 6 Sep 2006 09:16:34 +0000
(09:16 +0000)
ir/be/becopyheur3.c
patch
|
blob
|
history
diff --git
a/ir/be/becopyheur3.c
b/ir/be/becopyheur3.c
index
c79f77e
..
62320ae
100644
(file)
--- a/
ir/be/becopyheur3.c
+++ b/
ir/be/becopyheur3.c
@@
-198,7
+198,10
@@
int co_solve_heuristic_java(copy_opt_t *co)
if(bitset_is_set(nodes, idx)) {
unsigned t_idx = node_map[idx];
unsigned col = inv_col_map[be_java_coal_get_color(coal, t_idx)];
- const arch_register_t *reg = &co->cls->regs[col];
+ const arch_register_t *reg;
+
+ assert(col < n_regs);
+ reg = &co->cls->regs[col];
arch_set_irn_register(co->aenv, n, reg);
}
}