From: Matthias Braun Date: Fri, 30 Nov 2007 13:04:28 +0000 (+0000) Subject: fix dereferncing of pointer+compound types X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=inline;h=278287b873c69e79aa48cba0ffd7f35fd16dca4c;p=cparser fix dereferncing of pointer+compound types [r18577] --- diff --git a/ast2firm.c b/ast2firm.c index 0065ea2..3639f10 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -1088,7 +1088,9 @@ static ir_node *unary_expression_to_firm(const unary_expression_t *expression) } case UNEXPR_DEREFERENCE: { ir_type *irtype = get_ir_type(type); - return deref_address(irtype, value_node, dbgi); + assert(is_Pointer_type(irtype)); + ir_type *points_to = get_pointer_points_to_type(irtype); + return deref_address(points_to, value_node, dbgi); } case UNEXPR_POSTFIX_INCREMENT: case UNEXPR_POSTFIX_DECREMENT: