Fix handling of clones in lto_wpa_write_files [PR98599]
authorJan Hubicka <jh@suse.cz>
Thu, 15 Apr 2021 09:40:40 +0000 (11:40 +0200)
committerJan Hubicka <jh@suse.cz>
Thu, 15 Apr 2021 09:40:40 +0000 (11:40 +0200)
2021-04-15  Jan Hubicka  <hubicka@ucw.cz>

PR lto/98599
* lto.c (lto_wpa_write_files): Fix handling of clones.

gcc/lto/lto.c

index ceb61bb..5903f75 100644 (file)
@@ -306,7 +306,7 @@ lto_wpa_write_files (void)
   cgraph_node *node;
   /* Do body modifications needed for streaming before we fork out
      worker processes.  */
-  FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node)
+  FOR_EACH_FUNCTION (node)
     if (!node->clone_of && gimple_has_body_p (node->decl))
       lto_prepare_function_for_streaming (node);