aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-08-31 15:37:48 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2013-08-31 13:37:48 +0000
commit57292ce9bd9df2ff43d3cb13f3761b6eb5cf6334 (patch)
treeca37b194755d7426d5a89880e080fa72f1f9ed3b /gcc/cgraph.c
parentb9cbfeeb51d8e4ba5973611654cbca02d240a7b7 (diff)
downloadgcc-57292ce9bd9df2ff43d3cb13f3761b6eb5cf6334.zip
gcc-57292ce9bd9df2ff43d3cb13f3761b6eb5cf6334.tar.gz
gcc-57292ce9bd9df2ff43d3cb13f3761b6eb5cf6334.tar.bz2
* cgraph.c (cgraph_speculative_call_info): Fix ref lookup
From-SVN: r202129
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index d895224..88d7d98 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1151,7 +1151,7 @@ cgraph_speculative_call_info (struct cgraph_edge *e,
i, ref); i++)
if (ref->speculative
&& ((ref->stmt && ref->stmt == e->call_stmt)
- || (ref->lto_stmt_uid == e->lto_stmt_uid)))
+ || (!ref->stmt && ref->lto_stmt_uid == e->lto_stmt_uid)))
{
reference = ref;
break;