diff options
author | Jan Hubicka <jh@suse.cz> | 2013-09-19 14:20:47 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2013-09-19 12:20:47 +0000 |
commit | 188c7d00e6feb3946e5610acd68cc19e46a5a8a3 (patch) | |
tree | 33f7f1261ebb8f47cb61c6433ab9250aa4854e3a /gcc/cgraph.c | |
parent | 4befd127ca7e68a5b418e54e3e9eb9e5eef5a193 (diff) | |
download | gcc-188c7d00e6feb3946e5610acd68cc19e46a5a8a3.zip gcc-188c7d00e6feb3946e5610acd68cc19e46a5a8a3.tar.gz gcc-188c7d00e6feb3946e5610acd68cc19e46a5a8a3.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index c8e1b9c..722f8ca 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -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; } |