Go patch committed: Call cgraph_get_node

Submitted by Ian Taylor on April 12, 2011, 6:51 p.m.

Details

Message ID mcr39ln5mn0.fsf@google.com
State New
Headers show

Commit Message

Ian Taylor April 12, 2011, 6:51 p.m.
This patch to the Go frontend brings it up to date with Martin's change
to the cgraph code.  Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

Patch hide | download patch | download mbox

diff -r cc9719612058 go/gogo-tree.cc
--- a/go/gogo-tree.cc	Thu Apr 07 10:07:32 2011 -0700
+++ b/go/gogo-tree.cc	Tue Apr 12 11:48:59 2011 -0700
@@ -401,7 +401,7 @@ 
   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();