summaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-11 14:52:16 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-11 14:52:16 +0000
commit699456467ce74df6879e7d9baf48b774eae32ac6 (patch)
tree15b58ac6468105ef8a7eda80cf951f303edd8380 /gcc/value-prof.c
parent3665047ec31ad754105881dcace2c477fffbe507 (diff)
downloadgcc-699456467ce74df6879e7d9baf48b774eae32ac6.tar.gz
2008-09-11 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r140286 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@140290 138bc75d-0d04-0410-961f-82ee72b054a4
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 fac124ffddf..1900faa5299 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;