summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-19 12:20:47 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-19 12:20:47 +0000
commitf7eab642ad57022c47274cc39c2e5c6da0093ea5 (patch)
tree33f7f1261ebb8f47cb61c6433ab9250aa4854e3a /gcc/cgraph.c
parent39cb6d684e8d6a9927382cc735adedf57c7ab555 (diff)
downloadgcc-f7eab642ad57022c47274cc39c2e5c6da0093ea5.tar.gz
* cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
of speculative flag. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202740 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index c8e1b9c4c3e..722f8ca97e9 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;
}