diff options
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 3 |
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; |