libcc1: use static_assert

This changes one spot in libcc1 to use static_assert rather than the
old-style array declaration.

libcc1

	* libcp1plugin.cc: Use static assert.
This commit is contained in:
Tom Tromey 2021-05-04 15:26:58 -06:00
parent 7c4e5d5eaa
commit 0ed83e1d03
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ int plugin_is_GPL_compatible;
static int ATTRIBUTE_UNUSED
check_symbol_mask[GCC_CP_SYMBOL_MASK >= GCC_CP_SYMBOL_END ? 1 : -1];
static_assert (GCC_CP_SYMBOL_MASK >= GCC_CP_SYMBOL_END,
"GCC_CP_SYMBOL_MASK >= GCC_CP_SYMBOL_END");
// This is put into the lang hooks when the plugin starts.