From: Christoph Mallon Date: Mon, 17 Dec 2007 18:22:26 +0000 (+0000) Subject: Fix explicit dereferencing of function pointers. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c2754b13549ce10a208f3dd85eae24fb8d97285b;p=cparser Fix explicit dereferencing of function pointers. [r18787] --- 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; }