summaryrefslogtreecommitdiff
path: root/gcc/config/sh/sh_treg_combine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/sh/sh_treg_combine.cc')
-rw-r--r--gcc/config/sh/sh_treg_combine.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/sh/sh_treg_combine.cc b/gcc/config/sh/sh_treg_combine.cc
index 0f9027ec763..fc4a1c03bce 100644
--- a/gcc/config/sh/sh_treg_combine.cc
+++ b/gcc/config/sh/sh_treg_combine.cc
@@ -1469,7 +1469,7 @@ sh_treg_combine::execute (void)
// Look for basic blocks that end with a conditional branch and try to
// optimize them.
basic_block bb;
- FOR_EACH_BB (bb)
+ FOR_EACH_BB_FN (bb, cfun)
{
rtx i = BB_END (bb);
if (any_condjump_p (i) && onlyjump_p (i))