This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Typo fix in loop-invariant.c
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 26 Nov 2012 15:13:06 +0100
- Subject: Typo fix in loop-invariant.c
Will commit as obvious somewhen...
* loop-invariant.c (heck_invariant_table_size): Take sizeof of
the right type.
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;
}
}