summaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-20 20:46:20 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2005-10-20 20:46:20 +0000
commitbd9ee7d176d38ca549ef1015cf26ff7097455900 (patch)
tree48f9b34b9de48bc3e2dd76c444cd57434f1fd886 /gcc/tree-cfg.c
parent279cd73282f7ccdf9321cab55dc3dbfe1a29761c (diff)
downloadgcc-bd9ee7d176d38ca549ef1015cf26ff7097455900.tar.gz
* tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105691 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 90c27307b3e..13868e99e61 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -2937,7 +2937,7 @@ tree_find_edge_insert_loc (edge e, block_stmt_iterator *bsi,
if (TREE_CODE (tmp) == RETURN_EXPR)
{
tree op = TREE_OPERAND (tmp, 0);
- if (!is_gimple_val (op))
+ if (op && !is_gimple_val (op))
{
gcc_assert (TREE_CODE (op) == MODIFY_EXPR);
bsi_insert_before (bsi, op, BSI_NEW_STMT);