Remove unreachable statements.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 20 Nov 2008 11:05:43 +0000 (11:05 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 20 Nov 2008 11:05:43 +0000 (11:05 +0000)
[r23845]

ast2firm.c
type_hash.c
write_caml.c
write_fluffy.c

index b0220de..a6fdfb1 100644 (file)
@@ -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;
index aa5aa21..15325f4 100644 (file)
@@ -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:
index 612ca15..64ec6a8 100644 (file)
@@ -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:
index 63dbe9a..c57d51d 100644 (file)
@@ -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: