Call cgraph_get_node rather than cgraph_node.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 12 Apr 2011 18:51:12 +0000 (18:51 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 12 Apr 2011 18:51:12 +0000 (18:51 +0000)
This is for a recent change to the gcc middle-end.

From-SVN: r172335

gcc/go/gofrontend/gogo-tree.cc

index 53e43c7b519deb7f04996fa714aeb343a92e03d3..a8a5b4c978fbd1f31e31d8334e9360b8cea35075 100644 (file)
@@ -401,7 +401,7 @@ Gogo::write_initialization_function(tree fndecl, tree init_stmt_list)
   gimplify_function_tree(fndecl);
 
   cgraph_add_new_function(fndecl, false);
-  cgraph_mark_needed_node(cgraph_node(fndecl));
+  cgraph_mark_needed_node(cgraph_get_node(fndecl));
 
   current_function_decl = NULL_TREE;
   pop_cfun();