Commit 0ee87830 authored by yb9976's avatar yb9976
Browse files

We may return a parameter and thus need to copy them.

This fixes opt/fehler200.c.
parent 40846d55
......@@ -363,6 +363,16 @@ static void fix_args_and_collect_calls(ir_node *n, void *ctx)
}
break;
}
case iro_Sel: {
ir_entity *ent = get_Sel_entity(n);
ir_type *type = get_entity_type(ent);
/* we need to copy compound parameters */
if (is_parameter_entity(ent) && is_compound_type(type)) {
env->only_local_mem = 0;
}
break;
}
default:
/* do nothing */
break;
......
Markdown is supported
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