From 39c8aaa4bfab14d348ffbe515b332f03383eb1e9 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Thu, 7 Aug 2014 10:44:14 +0000 Subject: convert the rest of the users of pointer_map to hash_map gcc/ * hash-map.h (default_hashmap_traits): Adjust overloads of hash function to not conflict. * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c, gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c, lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h, tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead of pointer_map. gcc/cp/ * cp-tree.h, pt.c: Use hash_map instead of pointer_map. gcc/lto/ * lto-partition.c, lto.c: Use hash_map instead of pointer_map. From-SVN: r213703 --- gcc/alias.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/alias.c') diff --git a/gcc/alias.c b/gcc/alias.c index 0246dd7..d8e10db 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -302,10 +302,9 @@ ao_ref_from_mem (ao_ref *ref, const_rtx mem) && ! is_global_var (base) && cfun->gimple_df->decls_to_pointers != NULL) { - void *namep; - namep = pointer_map_contains (cfun->gimple_df->decls_to_pointers, base); + tree *namep = cfun->gimple_df->decls_to_pointers->get (base); if (namep) - ref->base = build_simple_mem_ref (*(tree *)namep); + ref->base = build_simple_mem_ref (*namep); } ref->ref_alias_set = MEM_ALIAS_SET (mem); -- cgit v1.1