* gimplify.c (gimplify_body): Watch for body vanishing.

From-SVN: r83598
This commit is contained in:
Richard Henderson 2004-06-24 09:25:17 -07:00 committed by Richard Henderson
parent d2d8936f3f
commit be1ba3d170
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-06-24 Richard Henderson <rth@redhat.com>
* gimplify.c (gimplify_body): Watch for body vanishing.
2004-06-24 Jeff Law <law@redhat.com>
* tree-ssa-dom.c (record_dominating_conditions): New function.

View File

@ -4142,7 +4142,9 @@ gimplify_body (tree *body_p, tree fndecl)
/* Unshare again, in case gimplification was sloppy. */
unshare_all_trees (body);
if (TREE_CODE (body) == STATEMENT_LIST)
if (!body)
body = alloc_stmt_list ();
else if (TREE_CODE (body) == STATEMENT_LIST)
{
tree t = expr_only (*body_p);
if (t)