diff options
Diffstat (limited to 'gcc/cfganal.c')
-rw-r--r-- | gcc/cfganal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfganal.c b/gcc/cfganal.c index 4054996..d3383c0 100644 --- a/gcc/cfganal.c +++ b/gcc/cfganal.c @@ -104,12 +104,12 @@ bool can_fallthru (basic_block src, basic_block target) { rtx insn = src->end; - rtx insn2 = target->head; + rtx insn2 = target == EXIT_BLOCK_PTR ? NULL : target->head; if (src->next_bb != target) return 0; - if (!active_insn_p (insn2)) + if (insn2 && !active_insn_p (insn2)) insn2 = next_active_insn (insn2); /* ??? Later we may add code to move jump tables offline. */ |