summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-uncprop.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-04 18:31:39 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-04 18:31:39 +0000
commit87490e081a4dfc06033fe7ec1fc9217f5be12ac8 (patch)
tree6adda91d66fe398c1ac9ee82618b9a70f78c30fb /gcc/tree-ssa-uncprop.c
parent686e094c0cb1a75f6da686d4b3bbd33044537566 (diff)
downloadgcc-87490e081a4dfc06033fe7ec1fc9217f5be12ac8.tar.gz
* tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
last_basic_block for size of bb->index indexed array. * bt-load.c (compute_defs_uses_and_gen, compute_kill, compute_out, link_btr_uses, build_btr_def_use_webs, build_btr_def_use_webs, migrate_btr_defs): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145546 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-uncprop.c')
-rw-r--r--gcc/tree-ssa-uncprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-uncprop.c b/gcc/tree-ssa-uncprop.c
index ceaa40d9c11..59c9b44c617 100644
--- a/gcc/tree-ssa-uncprop.c
+++ b/gcc/tree-ssa-uncprop.c
@@ -177,7 +177,7 @@ associate_equivalences_with_edges (void)
&& !SSA_NAME_OCCURS_IN_ABNORMAL_PHI (cond))
{
int i, n_labels = gimple_switch_num_labels (stmt);
- tree *info = XCNEWVEC (tree, n_basic_blocks);
+ tree *info = XCNEWVEC (tree, last_basic_block);
/* Walk over the case label vector. Record blocks
which are reached by a single case label which represents