summaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-31 13:22:20 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-31 13:22:20 +0000
commit031951bfcfbacf30e6ef1b1628b14f0332826556 (patch)
tree539dd432a942d07e4c911b395308685980c9c8d5 /gcc/tree-inline.c
parent88ba1e8a5df4974032335c355c5acea42d60f6d3 (diff)
downloadgcc-031951bfcfbacf30e6ef1b1628b14f0332826556.tar.gz
2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/23492 * tree-inline.c (setup_one_parameter): If the init_stmt is NULL, don't insert the statement. 2005-10-31 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/23492 * gcc.c-torture/compile/zero-strct-5.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106270 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 228252fd709..b17a5975dc4 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1159,7 +1159,8 @@ setup_one_parameter (inline_data *id, tree p, tree value, tree fn,
&& (!is_gimple_cast (rhs)
|| !is_gimple_val (TREE_OPERAND (rhs, 0))))
gimplify_stmt (&init_stmt);
- bsi_insert_after (&bsi, init_stmt, BSI_NEW_STMT);
+ if (init_stmt)
+ bsi_insert_after (&bsi, init_stmt, BSI_NEW_STMT);
}
}