ipa/94217 simplify offsetted address build
authorRichard Biener <rguenther@suse.de>
Thu, 19 Mar 2020 09:19:24 +0000 (10:19 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 19 Mar 2020 09:20:30 +0000 (10:20 +0100)
commitf3280e4c0c98e103603bafc466ea49651fe0b7f2
treee0c03a62ca11b9ccaa09f7f8daa3e81005039b36
parent73bc09fa8c6b973a928a599498caa66a25c8bc8d
ipa/94217 simplify offsetted address build

This avoids using build_ref_for_offset and build_fold_addr_expr
where type mixup easily results in something not IP invariant.

2020-03-19  Richard Biener  <rguenther@suse.de>

PR ipa/94217
* ipa-cp.c (ipa_get_jf_ancestor_result): Avoid build_fold_addr_expr
and build_ref_for_offset.
gcc/ChangeLog
gcc/ipa-cp.c