diff options
author | Jakub Jelinek <jakub@redhat.com> | 2013-01-18 21:24:34 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-01-18 21:24:34 +0100 |
commit | e300ec2d1c230ea60b3f6eb36945ea87a0a7bc73 (patch) | |
tree | da7e3ef52eb40dfacc29f4829de7733eff7905d6 /gcc/tree-phinodes.c | |
parent | a3d7af04118e10c592dfdd9502a8368df3d34853 (diff) | |
download | gcc-e300ec2d1c230ea60b3f6eb36945ea87a0a7bc73.zip gcc-e300ec2d1c230ea60b3f6eb36945ea87a0a7bc73.tar.gz gcc-e300ec2d1c230ea60b3f6eb36945ea87a0a7bc73.tar.bz2 |
re PR tree-optimization/56029 (ICE: verify_gimple failed, location references block not in block tree)
PR tree-optimization/56029
* tree-phinodes.c (reserve_phi_args_for_new_edge): Set
gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
* g++.dg/torture/pr56029.C: New test.
From-SVN: r195304
Diffstat (limited to 'gcc/tree-phinodes.c')
-rw-r--r-- | gcc/tree-phinodes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-phinodes.c b/gcc/tree-phinodes.c index 50f3725..03a20fa 100644 --- a/gcc/tree-phinodes.c +++ b/gcc/tree-phinodes.c @@ -312,6 +312,7 @@ reserve_phi_args_for_new_edge (basic_block bb) redirects edges, and then fixes up PHI arguments later in batch. */ SET_PHI_ARG_DEF (stmt, len - 1, NULL_TREE); + gimple_phi_arg_set_location (stmt, len - 1, UNKNOWN_LOCATION); stmt->gimple_phi.nargs++; } |