diff options
Diffstat (limited to 'gcc/tree-iterator.c')
-rw-r--r-- | gcc/tree-iterator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-iterator.c b/gcc/tree-iterator.c index a49744cf6c0..9816f249e1b 100644 --- a/gcc/tree-iterator.c +++ b/gcc/tree-iterator.c @@ -89,7 +89,7 @@ tsi_link_before (tree_stmt_iterator *i, tree t, enum tsi_iterator_update mode) } else { - head = ggc_alloc (sizeof (*head)); + head = GGC_NEW (struct tree_statement_list_node); head->prev = NULL; head->next = NULL; head->stmt = t; @@ -165,7 +165,7 @@ tsi_link_after (tree_stmt_iterator *i, tree t, enum tsi_iterator_update mode) } else { - head = ggc_alloc (sizeof (*head)); + head = GGC_NEW (struct tree_statement_list_node); head->prev = NULL; head->next = NULL; head->stmt = t; |