diff options
author | Martin Jambor <mjambor@suse.cz> | 2011-04-12 11:12:58 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2011-04-12 11:12:58 +0200 |
commit | fe660d7bfe8ae31c03f500af99c1a614438d0198 (patch) | |
tree | 4f92a1e1c4927ceefc0819510aeb42d32a9ed51a /gcc/tree-inline.c | |
parent | 237526dd7d236748f0f9cfba83e538bd0a571201 (diff) | |
download | gcc-fe660d7bfe8ae31c03f500af99c1a614438d0198.zip gcc-fe660d7bfe8ae31c03f500af99c1a614438d0198.tar.gz gcc-fe660d7bfe8ae31c03f500af99c1a614438d0198.tar.bz2 |
tree-inline.c (tree_function_versioning): Call cgraph_get_node instead of cgraph_node and assert it does not return NULL.
2011-04-12 Martin Jambor <mjambor@suse.cz>
* tree-inline.c (tree_function_versioning): Call cgraph_get_node
instead of cgraph_node and assert it does not return NULL.
* lto-streamer-in.c (lto_read_body): Likewise.
* omp-low.c (new_omp_context): Likewise.
(create_task_copyfn): Likewise.
* tree-emutls.c (lower_emutls_function_body): Likewise.
* matrix-reorg.c (transform_allocation_sites): Likewise.
From-SVN: r172306
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 9f86204..0ba8e4e 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -5001,8 +5001,10 @@ tree_function_versioning (tree old_decl, tree new_decl, && TREE_CODE (new_decl) == FUNCTION_DECL); DECL_POSSIBLY_INLINED (old_decl) = 1; - old_version_node = cgraph_node (old_decl); - new_version_node = cgraph_node (new_decl); + old_version_node = cgraph_get_node (old_decl); + gcc_checking_assert (old_version_node); + new_version_node = cgraph_get_node (new_decl); + gcc_checking_assert (new_version_node); /* Output the inlining info for this abstract function, since it has been inlined. If we don't do this now, we can lose the information about the |