aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r--gcc/cfgcleanup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index 8650fb7..260a896 100644
--- a/gcc/cfgcleanup.c
+++ b/gcc/cfgcleanup.c
@@ -1885,8 +1885,8 @@ outgoing_edges_match (int mode, basic_block bb1, basic_block bb2)
/* Ensure the same EH region. */
{
- rtx n1 = find_reg_note (BB_END (bb1), REG_EH_REGION, 0);
- rtx n2 = find_reg_note (BB_END (bb2), REG_EH_REGION, 0);
+ rtx n1 = find_reg_note (last1, REG_EH_REGION, 0);
+ rtx n2 = find_reg_note (last2, REG_EH_REGION, 0);
if (!n1 && n2)
return false;