Commit a565d95c by Jeff Law Committed by Jeff Law

tree-vrp.c (check_all_array_refs): Do not use wi->info to smuggle gimple statement locations.

	* tree-vrp.c (check_all_array_refs): Do not use wi->info to smuggle
	gimple statement locations.
	(check_array_bounds): Corresponding changes.  Get the statement's
	location directly from wi->stmt.

From-SVN: r254154
parent f44d7b24
2017-10-27 Jeff Law <law@redhat.com>
* tree-vrp.c (check_all_array_refs): Do not use wi->info to smuggle
gimple statement locations.
(check_array_bounds): Corresponding changes. Get the statement's
location directly from wi->stmt.
2017-10-27 Palmer Dabbelt <palmer@dabbelt.com> 2017-10-27 Palmer Dabbelt <palmer@dabbelt.com>
PR target/82717 PR target/82717
...@@ -6837,10 +6837,7 @@ check_array_bounds (tree *tp, int *walk_subtree, void *data) ...@@ -6837,10 +6837,7 @@ check_array_bounds (tree *tp, int *walk_subtree, void *data)
if (EXPR_HAS_LOCATION (t)) if (EXPR_HAS_LOCATION (t))
location = EXPR_LOCATION (t); location = EXPR_LOCATION (t);
else else
{ location = gimple_location (wi->stmt);
location_t *locp = (location_t *) wi->info;
location = *locp;
}
*walk_subtree = TRUE; *walk_subtree = TRUE;
...@@ -6887,9 +6884,6 @@ check_all_array_refs (void) ...@@ -6887,9 +6884,6 @@ check_all_array_refs (void)
memset (&wi, 0, sizeof (wi)); memset (&wi, 0, sizeof (wi));
location_t loc = gimple_location (stmt);
wi.info = &loc;
walk_gimple_op (gsi_stmt (si), walk_gimple_op (gsi_stmt (si),
check_array_bounds, check_array_bounds,
&wi); &wi);
......
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