aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r--gcc/tree-vrp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 2c86b8e..98be684 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -6837,10 +6837,7 @@ check_array_bounds (tree *tp, int *walk_subtree, void *data)
if (EXPR_HAS_LOCATION (t))
location = EXPR_LOCATION (t);
else
- {
- location_t *locp = (location_t *) wi->info;
- location = *locp;
- }
+ location = gimple_location (wi->stmt);
*walk_subtree = TRUE;
@@ -6887,9 +6884,6 @@ check_all_array_refs (void)
memset (&wi, 0, sizeof (wi));
- location_t loc = gimple_location (stmt);
- wi.info = &loc;
-
walk_gimple_op (gsi_stmt (si),
check_array_bounds,
&wi);