summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index cfbd79edc76..854fd357983 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -36,12 +36,14 @@ along with GCC; see the file COPYING3. If not see
#include "hashtab.h"
#include "toplev.h"
#include "flags.h"
-#include "ggc.h"
#include "debug.h"
#include "target.h"
-#include "basic-block.h"
#include "cgraph.h"
#include "intl.h"
+#include "tree-ssa-alias.h"
+#include "internal-fn.h"
+#include "tree-eh.h"
+#include "gimple-expr.h"
#include "gimple.h"
#include "gimple-iterator.h"
#include "timevar.h"
@@ -1465,7 +1467,7 @@ cgraph_redirect_edge_call_stmt_to_callee (struct cgraph_edge *e)
{
new_stmt = e->call_stmt;
gimple_call_set_fndecl (new_stmt, e->callee->decl);
- update_stmt (new_stmt);
+ update_stmt_fn (DECL_STRUCT_FUNCTION (e->caller->decl), new_stmt);
}
cgraph_set_call_stmt_including_clones (e->caller, e->call_stmt, new_stmt, false);