diff options
Diffstat (limited to 'gcc/c-family/c-gimplify.c')
-rw-r--r-- | gcc/c-family/c-gimplify.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gcc/c-family/c-gimplify.c b/gcc/c-family/c-gimplify.c index 2b5ce5b..4898217 100644 --- a/gcc/c-family/c-gimplify.c +++ b/gcc/c-family/c-gimplify.c @@ -74,7 +74,7 @@ along with GCC; see the file COPYING3. If not see static tree ubsan_walk_array_refs_r (tree *tp, int *walk_subtrees, void *data) { - struct pointer_set_t *pset = (struct pointer_set_t *) data; + hash_set<tree> *pset = (hash_set<tree> *) data; /* Since walk_tree doesn't call the callback function on the decls in BIND_EXPR_VARS, we have to walk them manually. */ @@ -116,10 +116,9 @@ c_genericize (tree fndecl) if (flag_sanitize & SANITIZE_BOUNDS) { - struct pointer_set_t *pset = pointer_set_create (); - walk_tree (&DECL_SAVED_TREE (fndecl), ubsan_walk_array_refs_r, pset, - pset); - pointer_set_destroy (pset); + hash_set<tree> pset; + walk_tree (&DECL_SAVED_TREE (fndecl), ubsan_walk_array_refs_r, &pset, + &pset); } /* Dump the C-specific tree IR. */ |