Re: [PATCH 3/7] cgraph_node -> cgraph_get_node with asserts

2011-04-11 Thread Jan Hubicka
> 2011-04-06 Martin Jambor > > * 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_c

[PATCH 3/7] cgraph_node -> cgraph_get_node with asserts

2011-04-06 Thread Martin Jambor
Hi, the patch below changes a number of calls to cgraph_node to calls to cgraph_get_node. These calls should never return NULL but because the callers do not immediately dereference the pointer they get, a NULL value would result in a segmentation fault at some later point, obscuring the real cau