From 278287b873c69e79aa48cba0ffd7f35fd16dca4c Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 30 Nov 2007 13:04:28 +0000 Subject: [PATCH] fix dereferncing of pointer+compound types [r18577] --- ast2firm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.20.1