From 57292ce9bd9df2ff43d3cb13f3761b6eb5cf6334 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 31 Aug 2013 15:37:48 +0200 Subject: [PATCH] * cgraph.c (cgraph_speculative_call_info): Fix ref lookup From-SVN: r202129 --- gcc/ChangeLog | 4 ++++ gcc/cgraph.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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; -- 2.30.2