tree-optimization/93661 properly guard tree_to_poly_int64
authorRichard Biener <rguenther@suse.de>
Tue, 11 Feb 2020 09:56:03 +0000 (10:56 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 11 Feb 2020 09:56:03 +0000 (10:56 +0100)
commit667afe5a49ccb73947c6b895780d266f4a4dac73
tree89bd2c7e721f338c999904067d536f8271eafe86
parent9714f1a70d184fb6d282ac543c57734ed1fb39ac
tree-optimization/93661 properly guard tree_to_poly_int64

2020-02-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/93661
PR tree-optimization/93662
* tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
tree_to_poly_int64.
* tree-sra.c (get_access_for_expr): Likewise.

* gcc.dg/pr93661.c: New testcase.
gcc/testsuite/gcc.dg/pr93661.c [new file with mode: 0644]