diff --git a/gcc/cfgcleanup.cc b/gcc/cfgcleanup.cc index 4cd33878ef359aaec01d90508dcdf7c6d5fd9ca0..194e0e5de123aa4674bc238075e8f06185a4a159 100644 --- a/gcc/cfgcleanup.cc +++ b/gcc/cfgcleanup.cc @@ -2608,7 +2608,7 @@ bb_is_just_return (basic_block bb, rtx_insn **ret, rtx_insn **use) if (bb == EXIT_BLOCK_PTR_FOR_FN (cfun)) return false; - FOR_BB_INSNS_REVERSE (bb, insn) + FOR_BB_INSNS (bb, insn) if (NONDEBUG_INSN_P (insn)) { rtx pat = PATTERN (insn);