X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ast2firm.c;h=f651b4303bd26b9d31fec5e101c522dbe97dcabd;hb=f50ecba9cfa8caf75729d49f4f350a7e44f2b3d9;hp=b092381f92a9b32b0e143f2b55afa583c2d726b1;hpb=fad027439f2410a5173f93db1cc1dc511fe5206c;p=cparser diff --git a/ast2firm.c b/ast2firm.c index b092381..f651b43 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -2231,11 +2231,6 @@ static ir_node *create_cast(dbg_info *dbgi, ir_node *value_node, (void) get_ir_type(type); return NULL; } - if (!is_type_scalar(type)) { - /* make sure firm type is constructed */ - (void) get_ir_type(type); - return value_node; - } from_type = skip_typeref(from_type); ir_mode *mode = get_ir_mode_storage(type); @@ -4079,10 +4074,6 @@ static void create_variable_initializer(entity_t *entity) type_t *const init_type = skip_typeref(value->base.type); if (!is_type_scalar(init_type)) { - /* skip convs */ - while (value->kind == EXPR_UNARY_CAST) - value = value->unary.value; - if (value->kind != EXPR_COMPOUND_LITERAL) panic("expected non-scalar initializer to be a compound literal"); initializer = value->compound_literal.initializer;