Add missing skip_typeref() in select_to_firm().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 17 Nov 2007 19:54:02 +0000 (19:54 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 17 Nov 2007 19:54:02 +0000 (19:54 +0000)
[r18461]

ast2firm.c

index f0be12e..71dce36 100644 (file)
@@ -1329,7 +1329,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;
+       type_t   *type = skip_typeref(expression->expression.datatype);
        return deref_address(type, addr, dbgi);
 }