summaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index a65f12ba490..f15e4e02dba 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -1695,7 +1695,7 @@ maybe_cleanup_end_of_block (edge e, rtx last)
insn = PREV_INSN (insn);
if (JUMP_P (NEXT_INSN (insn)))
{
- if (!any_condjump_p (insn))
+ if (!any_condjump_p (NEXT_INSN (insn)))
{
gcc_assert (BARRIER_P (NEXT_INSN (NEXT_INSN (insn))));
delete_insn (NEXT_INSN (NEXT_INSN (insn)));