aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2008-09-10 13:37:18 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2008-09-10 11:37:18 +0000
commit99e395c716b65987be6f026628bc2122990b5347 (patch)
tree9efba21d60dd7b56a9f98eeb5dc973292ff8fa18 /gcc/value-prof.c
parent6b672a290664a1ea25964af68906199a342528f3 (diff)
downloadgcc-99e395c716b65987be6f026628bc2122990b5347.zip
gcc-99e395c716b65987be6f026628bc2122990b5347.tar.gz
gcc-99e395c716b65987be6f026628bc2122990b5347.tar.bz2
value-prof.c (gimple_ic): Fix tuplification bug.
* value-prof.c (gimple_ic): Fix tuplification bug. * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized var warning. From-SVN: r140228
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index fac124f..1900faa 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -1117,8 +1117,7 @@ gimple_ic (gimple stmt, gimple call, struct cgraph_node *direct_call,
bb1end = stmt3;
stmt1 = gimple_copy (stmt);
- gimple_call_set_fn (stmt,
- build_addr (direct_call->decl, current_function_decl));
+ gimple_call_set_fndecl (stmt1, direct_call->decl);
gsi_insert_before (&gsi, stmt1, GSI_SAME_STMT);
bb2end = stmt1;
bb3end = stmt;