diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-29 00:45:57 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-29 00:45:57 +0000 |
commit | 5d5118741659a882c69d78d3fd977d7078f18294 (patch) | |
tree | fc4a01d2ad4b642b19279fc1db556118cadb5d28 /gcc/cfgcleanup.c | |
parent | 31c7a7396a0695f02951c95b44011bf66755329e (diff) | |
download | gcc-5d5118741659a882c69d78d3fd977d7078f18294.tar.gz |
PR rtl-opt/22619
* cfgcleanup.c (try_forward_edges): Watch out for end of
insn chain.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102536 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index fc3137727e6..66a0dec6488 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -537,7 +537,7 @@ try_forward_edges (int mode, basic_block b) && NOTE_LINE_NUMBER (insn) == NOTE_INSN_LOOP_BEG) break; - if (NOTE_P (insn)) + if (insn && NOTE_P (insn)) break; /* Do not clean up branches to just past the end of a loop |