mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 01:50:34 +08:00
tree-ssa-alias.c (free_used_part_map): Add missing free.
2005-07-10 Daniel Berlin <dberlin@dberlin.org> * tree-ssa-alias.c (free_used_part_map): Add missing free. (up_insert): Ditto. From-SVN: r101854
This commit is contained in:
parent
bd7d504356
commit
46c73d9a4f
@ -1,3 +1,8 @@
|
||||
2005-07-10 Daniel Berlin <dberlin@dberlin.org>
|
||||
|
||||
* tree-ssa-alias.c (free_used_part_map): Add missing free.
|
||||
(up_insert): Ditto.
|
||||
|
||||
2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
|
||||
|
||||
* pa.c (pa_commutative_p): Make PLUS commutative when
|
||||
|
@ -2344,6 +2344,7 @@ static void
|
||||
free_used_part_map (void *item)
|
||||
{
|
||||
free (((struct used_part_map *)item)->to);
|
||||
free (item);
|
||||
}
|
||||
|
||||
/* Lookup a used_part structure for a UID. */
|
||||
@ -2372,6 +2373,8 @@ up_insert (unsigned int uid, used_part_t to)
|
||||
h->to = to;
|
||||
loc = htab_find_slot_with_hash (used_portions, h,
|
||||
uid, INSERT);
|
||||
if (*loc != NULL)
|
||||
free (*loc);
|
||||
*(struct used_part_map **) loc = h;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user