OSDN Git Service

Call cgraph_get_node rather than cgraph_node.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Apr 2011 18:51:12 +0000 (18:51 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Apr 2011 18:51:12 +0000 (18:51 +0000)
This is for a recent change to the gcc middle-end.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172335 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/gogo-tree.cc

index 53e43c7..a8a5b4c 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();