summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-11-09 13:48:30 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-11-09 13:50:44 +0100
commitee9cdf32661bdfbd619ca99f22830d0bced09763 (patch)
tree2f6b5a78574ea68c78055255714b4a243cf82ee3 /ir/be/bestack.c
parentc219c1305dae8c9d49f05bb37bde359a03f9aac8 (diff)
Use QSORT().
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 438d0cb..ad965de 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -206,8 +206,7 @@ void be_sort_frame_entities(ir_type *const frame, bool spillslots_first)
{
unsigned const n_members = get_compound_n_members(frame);
assert(is_compound_type(frame));
- qsort(frame->attr.compound.members, n_members,
- sizeof(frame->attr.compound.members[0]),
+ QSORT(frame->attr.compound.members, n_members,
spillslots_first ? cmp_slots_first : cmp_slots_last);
}