tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace sizeof (bitmap *) with sizeof...
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 25 May 2005 15:17:12 +0000 (15:17 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 25 May 2005 15:17:12 +0000 (15:17 +0000)
* tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
sizeof (bitmap *) with sizeof (bitmap).

From-SVN: r100152

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

index d9cc051a692a286ac3d11764648ed7922db90b5a..997468744f19085b5fd661a3d3c5419094c06f97 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-25  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
+       sizeof (bitmap *) with sizeof (bitmap).
+
 2005-05-25  Daniel Berlin <dberlin@dberlin.org>
 
        * lambda-code.c (perfect_nestify): Call update_stmt on the exit
index 4a95072414d6b625644b892a4f2ce647aeab7429..03561bacf3c07c4cca5fe70103c3c4587e111fcf 100644 (file)
@@ -1750,7 +1750,7 @@ rewrite_into_ssa (void)
   sbitmap_zero (interesting_blocks);
 
   /* Initialize dominance frontier.  */
-  dfs = (bitmap *) xmalloc (last_basic_block * sizeof (bitmap *));
+  dfs = (bitmap *) xmalloc (last_basic_block * sizeof (bitmap));
   FOR_EACH_BB (bb)
     dfs[bb->index] = BITMAP_ALLOC (NULL);
 
@@ -2736,7 +2736,7 @@ update_ssa (unsigned update_flags)
 
       /* If the caller requested PHI nodes to be added, compute
         dominance frontiers.  */
-      dfs = xmalloc (last_basic_block * sizeof (bitmap *));
+      dfs = xmalloc (last_basic_block * sizeof (bitmap));
       FOR_EACH_BB (bb)
        dfs[bb->index] = BITMAP_ALLOC (NULL);
       compute_dominance_frontiers (dfs);