From 7217f767c955ff934eecd9284897b6f9fcf265b8 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Thu, 20 Nov 2008 11:05:43 +0000 Subject: [PATCH] Remove unreachable statements. [r23845] --- ast2firm.c | 2 -- type_hash.c | 1 - write_caml.c | 1 - write_fluffy.c | 1 - 4 files changed, 5 deletions(-) diff --git a/ast2firm.c b/ast2firm.c index b0220de..a6fdfb1 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -3479,7 +3479,6 @@ static void advance_current_object(type_path_t *path) if (path->invalid) { /* TODO: handle this... */ panic("invalid initializer in ast2firm (excessive elements)"); - return; } type_path_entry_t *top = get_type_path_top(path); @@ -4983,7 +4982,6 @@ static void statement_to_firm(statement_t *statement) switch (statement->kind) { case STATEMENT_INVALID: panic("invalid statement found"); - return; case STATEMENT_EMPTY: /* nothing */ return; diff --git a/type_hash.c b/type_hash.c index aa5aa21..15325f4 100644 --- a/type_hash.c +++ b/type_hash.c @@ -137,7 +137,6 @@ static unsigned hash_type(const type_t *type) switch (type->kind) { case TYPE_INVALID: panic("internalizing void or invalid types not possible"); - return 0; case TYPE_ERROR: return 0; case TYPE_ATOMIC: diff --git a/write_caml.c b/write_caml.c index 612ca15..64ec6a8 100644 --- a/write_caml.c +++ b/write_caml.c @@ -181,7 +181,6 @@ static void write_type(const type_t *type) return; case TYPE_INVALID: panic("invalid type found"); - break; case TYPE_COMPLEX: case TYPE_IMAGINARY: default: diff --git a/write_fluffy.c b/write_fluffy.c index 63dbe9a..c57d51d 100644 --- a/write_fluffy.c +++ b/write_fluffy.c @@ -174,7 +174,6 @@ static void write_type(const type_t *type) return; case TYPE_INVALID: panic("invalid type found"); - break; case TYPE_COMPLEX: case TYPE_IMAGINARY: default: -- 2.20.1