From a2ece61ac4936c82a30f6399f6e7f5cf407620b5 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 17 Nov 2007 16:56:22 +0000 Subject: [PATCH] Handle IR generation for selection of non-scalar types from a compound type. [r18448] --- ast2firm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ast2firm.c b/ast2firm.c index f98e0a7..5912543 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -1355,8 +1355,7 @@ static ir_node *select_to_firm(const select_expression_t *expression) dbg_info *dbgi = get_dbg_info(&expression->expression.source_position); ir_node *addr = select_addr(expression); type_t *type = expression->expression.datatype; - - return load_from_expression_addr(type, addr, dbgi); + return deref_address(type, addr, dbgi); } static ir_node *dereference_addr(const unary_expression_t *const expression) -- 2.20.1