From: Michael Beck Date: Mon, 10 Mar 2008 10:36:25 +0000 (+0000) Subject: copy_entity_own(): assert if the new type has already a fixed layout X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=21d9ccd6b08269dadcf8291664bcf976eeb7f398;p=libfirm copy_entity_own(): assert if the new type has already a fixed layout [r18034] --- diff --git a/ir/tr/entity.c b/ir/tr/entity.c index 6e1e7b3a7..541fd2627 100644 --- a/ir/tr/entity.c +++ b/ir/tr/entity.c @@ -264,6 +264,7 @@ copy_entity_own(ir_entity *old, ir_type *new_owner) { ir_entity *newe; assert(is_entity(old)); assert(is_compound_type(new_owner)); + assert(get_type_state(new_owner) != layout_fixed); if (old->owner == new_owner) return old; newe = xmalloc(sizeof(*newe));