summaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-29 00:45:57 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-29 00:45:57 +0000
commit5d5118741659a882c69d78d3fd977d7078f18294 (patch)
treefc4a01d2ad4b642b19279fc1db556118cadb5d28 /gcc/cfgcleanup.c
parent31c7a7396a0695f02951c95b44011bf66755329e (diff)
downloadgcc-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.c2
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