summaryrefslogtreecommitdiff
path: root/gcc/tree-emutls.c
diff options
context:
space:
mode:
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-12 09:12:58 +0000
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>2011-04-12 09:12:58 +0000
commit53f792063125d269550bc5018f68eb43bfb6a5f6 (patch)
tree4f92a1e1c4927ceefc0819510aeb42d32a9ed51a /gcc/tree-emutls.c
parent7999527983156c68f0e8f3c853c1d34c1a9f743c (diff)
downloadgcc-53f792063125d269550bc5018f68eb43bfb6a5f6.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172306 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-emutls.c')
-rw-r--r--gcc/tree-emutls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-emutls.c b/gcc/tree-emutls.c
index 899888dfb10..cc01fb39438 100644
--- a/gcc/tree-emutls.c
+++ b/gcc/tree-emutls.c
@@ -619,7 +619,8 @@ lower_emutls_function_body (struct cgraph_node *node)
d.cfun_node = node;
d.builtin_decl = built_in_decls[BUILT_IN_EMUTLS_GET_ADDRESS];
- d.builtin_node = cgraph_node (d.builtin_decl);
+ d.builtin_node = cgraph_get_node (d.builtin_decl);
+ gcc_checking_assert (d.builtin_node);
FOR_EACH_BB (d.bb)
{