From 21d9ccd6b08269dadcf8291664bcf976eeb7f398 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 10 Mar 2008 10:36:25 +0000 Subject: [PATCH] copy_entity_own(): assert if the new type has already a fixed layout [r18034] --- ir/tr/entity.c | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.20.1