diff options
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 3fae0297a78..137dd66a3b3 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -969,6 +969,8 @@ ipcp_update_callgraph (void) new_stmt = gimple_call_copy_skip_args (cs->call_stmt, args_to_skip); + if (gimple_vdef (new_stmt)) + SSA_NAME_DEF_STMT (gimple_vdef (new_stmt)) = new_stmt; gsi = gsi_for_stmt (cs->call_stmt); gsi_replace (&gsi, new_stmt, true); cgraph_set_call_stmt (cs, new_stmt); |