Call cgraph_get_node rather than cgraph_node.

This is for a recent change to the gcc middle-end.

From-SVN: r172335
This commit is contained in:
Ian Lance Taylor 2011-04-12 18:51:12 +00:00
parent 0e66e494cf
commit d94faf0d7d

View 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();