X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ast2firm.c;fp=ast2firm.c;h=ada6300c098c0c69c90cdb474e18c1486bada12c;hb=d76ef599c8f1ad607e54c5f9a81b301e190f5cca;hp=3cc2db0185c8212b295ac6f4401f883409f2bdfc;hpb=068d2dd0c313953970f7fc97b583f8468e5256e3;p=cparser diff --git a/ast2firm.c b/ast2firm.c index 3cc2db0..ada6300 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -2204,15 +2204,15 @@ static ir_node *handle_assume(expression_t const *const expr) static ir_node *create_cast(unary_expression_t const *const expr) { - type_t *const type = skip_typeref(expr->base.type); - if (is_type_void(type)) - return NULL; - type_t *const from_type = skip_typeref(expr->value->base.type); ir_node *value = is_type_complex(from_type) ? expression_to_complex(expr->value).real : expression_to_value(expr->value); + type_t *const type = skip_typeref(expr->base.type); + if (is_type_void(type)) + return NULL; + dbg_info *const dbgi = get_dbg_info(&expr->base.pos); ir_mode *const mode = get_ir_mode_storage(type); /* check for conversion from / to __based types */