IPA modref: fix miscompilation in clone when IPA modref is used
authorJan Hubicka <jh@suse.cz>
Fri, 9 Oct 2020 09:29:58 +0000 (11:29 +0200)
committerMartin Liska <mliska@suse.cz>
Fri, 9 Oct 2020 10:27:23 +0000 (12:27 +0200)
gcc/ChangeLog:

PR ipa/97292
PR ipa/97335
* ipa-modref-tree.h (copy_from): Drop summary in a
clone.

gcc/ipa-modref-tree.h

index b37280d..8d7f286 100644 (file)
@@ -496,7 +496,8 @@ struct GTY((user)) modref_tree
   /* Copy OTHER to THIS.  */
   void copy_from (modref_tree <T> *other)
   {
-    merge (other, NULL);
+    auto_vec <modref_parm_map, 32> parm_map;
+    merge (other, &parm_map);
   }
 
   /* Search BASE in tree; return NULL if failed.  */