diff options
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index d98ac5bfee4..014f78b4f4e 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -501,7 +501,7 @@ add_scope_conflicts (void) FOR_ALL_BB (bb) bb->aux = BITMAP_ALLOC (&stack_var_bitmap_obstack); - rpo = XNEWVEC (int, last_basic_block); + rpo = XNEWVEC (int, last_basic_block_for_fn (cfun)); n_bbs = pre_and_rev_post_order_compute (NULL, rpo, false); changed = true; @@ -5809,7 +5809,7 @@ gimple_expand_cfg (void) } } - blocks = sbitmap_alloc (last_basic_block); + blocks = sbitmap_alloc (last_basic_block_for_fn (cfun)); bitmap_ones (blocks); find_many_sub_basic_blocks (blocks); sbitmap_free (blocks); |