Save ref->speculative_id before clone_reference.
authorMartin Liska <mliska@suse.cz>
Mon, 23 Mar 2020 07:57:06 +0000 (08:57 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 23 Mar 2020 07:57:06 +0000 (08:57 +0100)
commit2fa4b1ffd6e4058e53b3a486494b00098ee1bf63
tree00d0cece42f93ef4b1596dcf10b9f8d1386e5200
parentb809f0b6580969c4f047f4dae072c090718efd76
Save ref->speculative_id before clone_reference.

PR ipa/94250
* symtab.c (symtab_node::clone_references): Save speculative_id
as ref may be overwritten by create_reference.
(symtab_node::clone_referring): Likewise.
(symtab_node::clone_reference): Likewise.
gcc/ChangeLog
gcc/symtab.c