tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt is NULL.

2007-05-01  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
 	is NULL.

From-SVN: r124329
This commit is contained in:
Richard Guenther 2007-05-01 14:54:30 +00:00 committed by Richard Biener
parent 037ab18d88
commit ae2cf11b91
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-05-01 Richard Guenther <rguenther@suse.de>
* tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
is NULL.
2007-05-01 Joseph Myers <joseph@codesourcery.com> 2007-05-01 Joseph Myers <joseph@codesourcery.com>
* config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo. * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.

View File

@ -505,7 +505,8 @@ ip_normal_pos (struct loop *loop)
bb = single_pred (loop->latch); bb = single_pred (loop->latch);
last = last_stmt (bb); last = last_stmt (bb);
if (TREE_CODE (last) != COND_EXPR) if (!last
|| TREE_CODE (last) != COND_EXPR)
return NULL; return NULL;
exit = EDGE_SUCC (bb, 0); exit = EDGE_SUCC (bb, 0);