middle-end/94216 fix another build_fold_addr_expr use
authorRichard Biener <rguenther@suse.de>
Thu, 19 Mar 2020 09:15:52 +0000 (10:15 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 19 Mar 2020 09:18:01 +0000 (10:18 +0100)
commit73bc09fa8c6b973a928a599498caa66a25c8bc8d
treeb05b87310a0bca42f13f0e8d6949193424a819d5
parentb5562f1187d47b0e8a20687a8d31d00c187aada9
middle-end/94216 fix another build_fold_addr_expr use

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

PR middle-end/94216
* fold-const.c (fold_binary_loc): Avoid using
build_fold_addr_expr when we really want an ADDR_EXPR.

* g++.dg/torture/pr94216.C: New testcase.
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr94216.C [new file with mode: 0644]