From: Matthias Braun Date: Tue, 20 Jan 2009 09:48:53 +0000 (+0000) Subject: missing skip_typeref X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=cc7d1b9ee78a4aeff35a49b43baffb917bec8a66;p=cparser missing skip_typeref [r25287] --- diff --git a/ast2firm.c b/ast2firm.c index c9322a2..4b6dedb 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -2562,7 +2562,7 @@ static ir_node *unary_expression_to_firm(const unary_expression_t *expression) ir_node *value_node = expression_to_firm(value); if (is_type_scalar(type)) { ir_mode *mode = get_ir_mode_storage(type); - type_t *from_type = value->base.type; + type_t *from_type = skip_typeref(value->base.type); /* check for conversion from / to __based types */ if (is_type_pointer(type) && is_type_pointer(from_type)) { const variable_t *from_var = from_type->pointer.base_variable;