diff options
author | Richard Biener <rguenther@suse.de> | 2017-11-09 12:22:32 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2017-11-09 12:22:32 +0000 |
commit | a5bd402701fa7c9e5d1d81ca1bf76106ec9a7785 (patch) | |
tree | 5fe353930cf95ab3cbc9ccad395659efa23d60de /gcc/tree-ssa-phiprop.c | |
parent | af36439968794e53382c6733c9f42adcf1c03dad (diff) | |
download | gcc-a5bd402701fa7c9e5d1d81ca1bf76106ec9a7785.zip gcc-a5bd402701fa7c9e5d1d81ca1bf76106ec9a7785.tar.gz gcc-a5bd402701fa7c9e5d1d81ca1bf76106ec9a7785.tar.bz2 |
re PR tree-optimization/82902 (ICE verify_ssa failed during GIMPLE pass: phiprop)
2017-11-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/82902
* tree-ssa-phiprop.c (propagate_with_phi): Test proper type.
* g++.dg/torture/pr82902.C: New testcase.
From-SVN: r254575
Diffstat (limited to 'gcc/tree-ssa-phiprop.c')
-rw-r--r-- | gcc/tree-ssa-phiprop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-phiprop.c b/gcc/tree-ssa-phiprop.c index 7dcb9ee..494158b 100644 --- a/gcc/tree-ssa-phiprop.c +++ b/gcc/tree-ssa-phiprop.c @@ -354,7 +354,7 @@ propagate_with_phi (basic_block bb, gphi *phi, struct phiprop_d *phivn, /* Found a proper dereference with an aggregate copy. Just insert aggregate copies on the edges instead. */ - if (!is_gimple_reg_type (TREE_TYPE (TREE_TYPE (ptr)))) + if (!is_gimple_reg_type (TREE_TYPE (gimple_assign_lhs (use_stmt)))) { if (!gimple_vdef (use_stmt)) goto next; |