diff options
Diffstat (limited to 'gcc/tree-cfgcleanup.c')
-rw-r--r-- | gcc/tree-cfgcleanup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c index 76d9749..50b4a68 100644 --- a/gcc/tree-cfgcleanup.c +++ b/gcc/tree-cfgcleanup.c @@ -585,7 +585,7 @@ split_bbs_on_noreturn_calls (void) BB is present in the cfg. */ if (bb == NULL || bb->index < NUM_FIXED_BLOCKS - || bb->index >= last_basic_block + || bb->index >= last_basic_block_for_fn (cfun) || BASIC_BLOCK_FOR_FN (cfun, bb->index) != bb || !gimple_call_noreturn_p (stmt)) continue; @@ -642,7 +642,7 @@ cleanup_tree_cfg_1 (void) /* Start by iterating over all basic blocks. We cannot use FOR_EACH_BB, since the basic blocks may get removed. */ - n = last_basic_block; + n = last_basic_block_for_fn (cfun); for (i = NUM_FIXED_BLOCKS; i < n; i++) { bb = BASIC_BLOCK_FOR_FN (cfun, i); |