diff options
Diffstat (limited to 'gcc/gengtype-state.c')
-rw-r--r-- | gcc/gengtype-state.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/gengtype-state.c b/gcc/gengtype-state.c index c94d50b1ef6..e3317ec36a4 100644 --- a/gcc/gengtype-state.c +++ b/gcc/gengtype-state.c @@ -961,6 +961,8 @@ write_state_type (type_p current) current->state_number = state_written_type_count; switch (current->kind) { + case TYPE_NONE: + gcc_unreachable (); case TYPE_STRUCT: write_state_struct_type (current); break; @@ -988,9 +990,6 @@ write_state_type (type_p current) case TYPE_STRING: write_state_string_type (current); break; - - default: - fatal ("Unexpected type..."); } } @@ -1318,7 +1317,6 @@ read_state_scalar_char_type (type_p *type) read_state_common_type_content (*type); } - /* Read the string_type. */ static void read_state_string_type (type_p *type) |