Fix explicit dereferencing of function pointers.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Dec 2007 18:22:26 +0000 (18:22 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 17 Dec 2007 18:22:26 +0000 (18:22 +0000)
[r18787]

ast2firm.c

index 5b327b6..d9eae5b 100644 (file)
@@ -1045,7 +1045,9 @@ static ir_node *wide_string_literal_to_firm(
 static ir_node *deref_address(ir_type *const irtype, ir_node *const addr,
                               dbg_info *const dbgi)
 {
-       if(is_compound_type(irtype) || is_Array_type(irtype)) {
+       if (is_compound_type(irtype) ||
+                       is_Method_type(irtype)   ||
+                       is_Array_type(irtype)) {
                return addr;
        }