Commit 01c49ce8 by Kazu Hirata

tree-data-ref.c (free_data_refs): Free each data_reference object.

	* tree-data-ref.c (free_data_refs): Free each data_reference
	object.

From-SVN: r92002
parent f914cec2
2004-12-02 Jeff Law <law@redhat.com>
2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
* tree-data-ref.c (free_data_refs): Free each data_reference
object.
2004-12-10 Jeff Law <law@redhat.com>
* tree-ssa-alias.c (setup_pointers_and_addressables): Remove
redundant test of v_ann->mem_tag_kind.
......
......@@ -2479,8 +2479,12 @@ free_data_refs (varray_type datarefs)
{
struct data_reference *dr = (struct data_reference *)
VARRAY_GENERIC_PTR (datarefs, i);
if (dr && DR_ACCESS_FNS (dr))
varray_clear (DR_ACCESS_FNS (dr));
if (dr)
{
if (DR_ACCESS_FNS (dr))
varray_clear (DR_ACCESS_FNS (dr));
free (dr);
}
}
varray_clear (datarefs);
}
......
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