From: Jan Hubicka Date: Sat, 31 Aug 2013 13:37:48 +0000 (+0200) Subject: * cgraph.c (cgraph_speculative_call_info): Fix ref lookup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57292ce9bd9df2ff43d3cb13f3761b6eb5cf6334;p=gcc.git * cgraph.c (cgraph_speculative_call_info): Fix ref lookup From-SVN: r202129 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2168c4bfaf3..5666ce03846 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-08-31 Jan Hubicka + + * cgraph.c (cgraph_speculative_call_info): Fix ref lookup + 2013-08-31 Jan Hubicka * basic-block.h (apply_scale): Make scale parmeter gcov_type. 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;