diff options
Diffstat (limited to 'gcc/dominance.c')
-rw-r--r-- | gcc/dominance.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/dominance.c b/gcc/dominance.c index 5ece3f68b94..e9d2265e4a8 100644 --- a/gcc/dominance.c +++ b/gcc/dominance.c @@ -884,10 +884,10 @@ nearest_common_dominator_for_set (enum cdi_direction dir, bitmap blocks) basic_block dom; first = bitmap_first_set_bit (blocks); - dom = BASIC_BLOCK (first); + dom = BASIC_BLOCK_FOR_FN (cfun, first); EXECUTE_IF_SET_IN_BITMAP (blocks, 0, i, bi) - if (dom != BASIC_BLOCK (i)) - dom = nearest_common_dominator (dir, dom, BASIC_BLOCK (i)); + if (dom != BASIC_BLOCK_FOR_FN (cfun, i)) + dom = nearest_common_dominator (dir, dom, BASIC_BLOCK_FOR_FN (cfun, i)); return dom; } |