Typo fix in loop-invariant.c

Submitted by Steven Bosscher on Nov. 26, 2012, 2:13 p.m.

Details

Message ID CABu31nOw+wDBYAmacS0GmGZU1m8=2mpL4sq4PVEBrAQQOJk0ag@mail.gmail.com
State New
Headers show

Commit Message

Steven Bosscher Nov. 26, 2012, 2:13 p.m.
Will commit as obvious somewhen...

        * loop-invariant.c (heck_invariant_table_size): Take sizeof of
the right type.

     }
 }

Patch hide | download patch | download mbox

Index: loop-invariant.c
===================================================================
--- loop-invariant.c    (revision 193814)
+++ loop-invariant.c    (working copy)
@@ -186,7 +186,7 @@  check_invariant_table_size (void)
       unsigned int new_size = DF_DEFS_TABLE_SIZE () +
(DF_DEFS_TABLE_SIZE () / 4);
       invariant_table = XRESIZEVEC (struct invariant *,
invariant_table, new_size);
       memset (&invariant_table[invariant_table_size], 0,
-             (new_size - invariant_table_size) * sizeof (struct rtx_iv *));
+             (new_size - invariant_table_size) * sizeof (struct invariant *));
       invariant_table_size = new_size;