diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-12 18:51:12 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-12 18:51:12 +0000 |
commit | d94faf0d7dbe407d9a667d188158e8dce7d38d81 (patch) | |
tree | eb196f3f1b4a4fe771571b917e545830dac7ed4a /gcc/go | |
parent | 0e66e494cf1bef2b997af114bd26be23c4f2c4e0 (diff) | |
download | gcc-d94faf0d7dbe407d9a667d188158e8dce7d38d81.zip gcc-d94faf0d7dbe407d9a667d188158e8dce7d38d81.tar.gz gcc-d94faf0d7dbe407d9a667d188158e8dce7d38d81.tar.bz2 |
Call cgraph_get_node rather than cgraph_node.
This is for a recent change to the gcc middle-end.
From-SVN: r172335
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/gogo-tree.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/gogo-tree.cc b/gcc/go/gofrontend/gogo-tree.cc index 53e43c7..a8a5b4c 100644 --- a/gcc/go/gofrontend/gogo-tree.cc +++ b/gcc/go/gofrontend/gogo-tree.cc @@ -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(); |