aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-08-31 13:37:48 +0000
committerJan Hubicka <jh@suse.cz>2013-08-31 13:37:48 +0000
commitd0f986b406e41e5d2f1a9c821e88be5b2da89d76 (patch)
treeca37b194755d7426d5a89880e080fa72f1f9ed3b
parent7db2f0cbb17c029314e5eb56f8cd81c726642ad2 (diff)
* cgraph.c (cgraph_speculative_call_info): Fix ref lookup
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@202129 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cgraph.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2168c4bfaf3..5666ce03846 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2013-08-31 Jan Hubicka <jh@suse.cz>
+ * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
+
+2013-08-31 Jan Hubicka <jh@suse.cz>
+
* basic-block.h (apply_scale): Make scale parmeter gcov_type.
2013-08-31 Uros Bizjak <ubizjak@gmail.com>
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index d89522432b3..88d7d985419 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;