From c4d6fd12d153fa0c6330d6499f0722412dbef731 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 11 Dec 2012 11:12:25 +0100 Subject: [PATCH] inlining array types is the same as inlining compound types --- ir/opt/opt_inline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/opt/opt_inline.c b/ir/opt/opt_inline.c index b2550edca..f3dd946f8 100644 --- a/ir/opt/opt_inline.c +++ b/ir/opt/opt_inline.c @@ -260,7 +260,7 @@ static bool can_inline(ir_node *call, ir_graph *called_graph) for (i = 0; i < n_params; ++i) { ir_type *p_type = get_method_param_type(call_type, i); - if (is_compound_type(p_type)) + if (is_compound_type(p_type) || is_Array_type(p_type)) return false; } @@ -268,7 +268,7 @@ static bool can_inline(ir_node *call, ir_graph *called_graph) for (i = 0; i < n_res; ++i) { ir_type *r_type = get_method_res_type(call_type, i); - if (is_compound_type(r_type)) + if (is_compound_type(r_type) || is_Array_type(r_type)) return false; } -- 2.20.1