]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/varpool.c
use templates instead of gengtype for typed allocation functions
[thirdparty/gcc.git] / gcc / varpool.c
index c4fd11c2946ed21d350f7b9bc73a33b5508dafe9..4525579f6916cf382002b9ac42df5ec96eee6257 100644 (file)
@@ -135,7 +135,7 @@ varpool_call_variable_insertion_hooks (varpool_node *node)
 varpool_node *
 varpool_create_empty_node (void)
 {   
-  varpool_node *node = ggc_alloc_cleared_varpool_node ();
+  varpool_node *node = ggc_cleared_alloc<varpool_node> ();
   node->type = SYMTAB_VARIABLE;
   return node;
 }