cgraph.c (cgraph_create_edge_1): Avoid uninitialized read of speculative flag.

* cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
	of speculative flag.

From-SVN: r202740
This commit is contained in:
Jan Hubicka 2013-09-19 14:20:47 +02:00 committed by Jan Hubicka
parent 4befd127ca
commit 188c7d00e6
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-09-19 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
of speculative flag.
2013-09-19 Jakub Jelinek <jakub@redhat.com>
* omp-low.c (expand_omp_sections): Always pass len - 1 to

View File

@ -870,12 +870,12 @@ cgraph_create_edge_1 (struct cgraph_node *caller, struct cgraph_node *callee,
edge->call_stmt_cannot_inline_p = true;
else
edge->call_stmt_cannot_inline_p = false;
if (call_stmt && caller->call_site_hash)
cgraph_add_edge_to_call_site_hash (edge);
edge->indirect_info = NULL;
edge->indirect_inlining_edge = 0;
edge->speculative = false;
if (call_stmt && caller->call_site_hash)
cgraph_add_edge_to_call_site_hash (edge);
return edge;
}