]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-iterator.c
use templates instead of gengtype for typed allocation functions
[thirdparty/gcc.git] / gcc / tree-iterator.c
index 37ee7522ba17c5d08a4f02512a55fe6a12af55d8..c4412bad4d5127897edd24cb457a7d2609b2f4cf 100644 (file)
@@ -131,7 +131,7 @@ tsi_link_before (tree_stmt_iterator *i, tree t, enum tsi_iterator_update mode)
     }
   else
     {
-      head = ggc_alloc_tree_statement_list_node ();
+      head = ggc_alloc<tree_statement_list_node> ();
       head->prev = NULL;
       head->next = NULL;
       head->stmt = t;
@@ -207,7 +207,7 @@ tsi_link_after (tree_stmt_iterator *i, tree t, enum tsi_iterator_update mode)
     }
   else
     {
-      head = ggc_alloc_tree_statement_list_node ();
+      head = ggc_alloc<tree_statement_list_node> ();
       head->prev = NULL;
       head->next = NULL;
       head->stmt = t;