tree-ssa-dom.c (record_range): Free the element if we are not going to use it.
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 13 Oct 2004 17:27:31 +0000 (17:27 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 13 Oct 2004 17:27:31 +0000 (10:27 -0700)
2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-ssa-dom.c (record_range): Free the element if we are not
        going to use it.

From-SVN: r88994

gcc/ChangeLog
gcc/tree-ssa-dom.c

index 86fc2e7666ce2f114f0a1ff01a2971fe46f53d92..17e62d0ec935f5d7f96fda590ad70f3de0a7c591 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * tree-ssa-dom.c (record_range): Free the element if we are not
+       going to use it.
+
 2004-10-13  Tom Tromey  <tromey@redhat.com>
 
        PR java/15578:
index 4ab36138f653c37b2ffaa5e864695ce715703484..55955567765f32632307c6d0fcc039d2ecdaed67 100644 (file)
@@ -3026,6 +3026,8 @@ record_range (tree cond, basic_block bb)
 
       if (*slot == NULL)
        *slot = (void *) vrp_hash_elt;
+      else
+       free (vrp_hash_elt);
 
       vrp_hash_elt = (struct vrp_hash_elt *) *slot;
       vrp_records_p = &vrp_hash_elt->records;