From: Matthias Braun Date: Fri, 6 Apr 2007 13:55:30 +0000 (+0000) Subject: check that alignment of frame_type is set before using alloc_frame_area X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=64b3d85bdd0604a4d75be35ab73bbec35b2408b4;p=libfirm check that alignment of frame_type is set before using alloc_frame_area [r12676] --- diff --git a/ir/tr/type.c b/ir/tr/type.c index a4a8fd47a..558fb3116 100644 --- a/ir/tr/type.c +++ b/ir/tr/type.c @@ -2029,6 +2029,7 @@ ir_entity *frame_alloc_area(ir_type *frame_type, int size, int alignment, int at assert(is_frame_type(frame_type)); assert(get_type_state(frame_type) == layout_fixed); + assert(get_type_alignment_bytes(frame_type) > 0); if (! a_byte) a_byte = new_type_primitive(new_id_from_chars("byte", 4), mode_Bu);