From c2754b13549ce10a208f3dd85eae24fb8d97285b Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 17 Dec 2007 18:22:26 +0000 Subject: [PATCH] Fix explicit dereferencing of function pointers. [r18787] --- ast2firm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ast2firm.c b/ast2firm.c index 5b327b6..d9eae5b 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -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; } -- 2.20.1