Commit ef6179d1 by Dehao Chen Committed by Ramana Radhakrishnan

re PR tree-optimization/58619 (ICE building in gen_combined_adhoc_loc)

PR tree-optimization/58619

2013-10-08  Dehao Chen  <dehao@google.com>

	* tree-inline.c (copy_phis_for_bb): Combine location data
	only if non-null.

From-SVN: r203269
parent 07d964d5
2013-10-08 Dehao Chen <dehao@google.com>
PR tree-optimization/58619
* tree-inline.c (copy_phis_for_bb): Combine location data
only if non-null.
2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
PR target/58423
......
......@@ -2090,7 +2090,10 @@ copy_phis_for_bb (basic_block bb, copy_body_data *id)
n = (tree *) pointer_map_contains (id->decl_map,
LOCATION_BLOCK (locus));
gcc_assert (n);
locus = COMBINE_LOCATION_DATA (line_table, locus, *n);
if (*n)
locus = COMBINE_LOCATION_DATA (line_table, locus, *n);
else
locus = LOCATION_LOCUS (locus);
}
else
locus = LOCATION_LOCUS (locus);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment