Commit c4d6fd12 authored by Matthias Braun's avatar Matthias Braun
Browse files

inlining array types is the same as inlining compound types

parent e0a97ca8
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment