Commit 14b3c4c7 authored by Matthias Braun's avatar Matthias Braun
Browse files

ia32: fix array argument calling convention (complex numbers)

parent a5c44f6e
......@@ -144,7 +144,7 @@ ia32_cconv_t *ia32_decide_calling_convention(ir_type *function_type,
for (unsigned i = 0; i < n_params; ++i) {
ir_type *param_type = get_method_param_type(function_type, i);
reg_or_stackslot_t *param = &params[i];
if (is_compound_type(param_type)) {
if (is_aggregate_type(param_type)) {
param->type = param_type;
param->offset = stack_offset;
stack_offset += get_type_size_bytes(param_type);
......
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