* 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
+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>
PR target/82717
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;
memset (&wi, 0, sizeof (wi));
- location_t loc = gimple_location (stmt);
- wi.info = &loc;
-
walk_gimple_op (gsi_stmt (si),
check_array_bounds,
&wi);