summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-06-27 07:22:54 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-06-27 07:23:31 +0200
commit57f6b0a8c8b5a3bf223debd801ebaef8e55729f2 (patch)
treecb026b60f627943e218f667158b783a9f369d6a3 /ir/be/bestack.c
parent6f2824f65901624af90426e4c8403fce7953f750 (diff)
Assert that the frame type is not fixed before layouting it.
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 1c86137..438d0cb 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -214,6 +214,7 @@ void be_sort_frame_entities(ir_type *const frame, bool spillslots_first)
void be_layout_frame_type(ir_type *const frame, int const begin,
unsigned const misalign)
{
+ assert(get_type_state(frame) == layout_undefined);
/* Layout entities into negative direction. */
int offset = begin;
for (unsigned i = 0, n_members = get_compound_n_members(frame);