OSDN Git Service

PR debug/39834
[pf3gnuchains/gcc-fork.git] / gcc / cgraphunit.c
index 70b2682..907488c 100644 (file)
@@ -1688,6 +1688,9 @@ save_inline_function_body (struct cgraph_node *node)
   DECL_ONE_ONLY (first_clone->decl) = 0;
   TREE_PUBLIC (first_clone->decl) = 0;
   DECL_COMDAT (first_clone->decl) = 0;
+  VEC_free (ipa_opt_pass, heap,
+            DECL_STRUCT_FUNCTION (first_clone->decl)->ipa_transforms_to_apply);
+  DECL_STRUCT_FUNCTION (first_clone->decl)->ipa_transforms_to_apply = NULL;
 
 #ifdef ENABLE_CHECKING
   verify_cgraph_node (first_clone);