Commit d1f9044b by Andrew Pinski Committed by Andrew Pinski

tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated with BITMAP_XMALLOC.

2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
        with BITMAP_XMALLOC.

From-SVN: r81789
parent cfa4cb00
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu> 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
* tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
with BITMAP_XMALLOC.
* tree-ssa-dom.c (tree_ssa_dominator_optimize): * tree-ssa-dom.c (tree_ssa_dominator_optimize):
Free nonzero_vars at the end of the function. Free nonzero_vars at the end of the function.
......
...@@ -387,9 +387,9 @@ delete_alias_info (struct alias_info *ai) ...@@ -387,9 +387,9 @@ delete_alias_info (struct alias_info *ai)
{ {
size_t i; size_t i;
BITMAP_FREE (ai->ssa_names_visited); BITMAP_XFREE (ai->ssa_names_visited);
ai->processed_ptrs = NULL; ai->processed_ptrs = NULL;
BITMAP_FREE (ai->addresses_needed); BITMAP_XFREE (ai->addresses_needed);
for (i = 0; i < ai->num_addressable_vars; i++) for (i = 0; i < ai->num_addressable_vars; i++)
{ {
...@@ -406,9 +406,9 @@ delete_alias_info (struct alias_info *ai) ...@@ -406,9 +406,9 @@ delete_alias_info (struct alias_info *ai)
free (ai->pointers); free (ai->pointers);
ai->num_references = NULL; ai->num_references = NULL;
BITMAP_FREE (ai->written_vars); BITMAP_XFREE (ai->written_vars);
BITMAP_FREE (ai->dereferenced_ptrs_store); BITMAP_XFREE (ai->dereferenced_ptrs_store);
BITMAP_FREE (ai->dereferenced_ptrs_load); BITMAP_XFREE (ai->dereferenced_ptrs_load);
free (ai); free (ai);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment