From 43c39160eb7c8b6d92dcf72e0c3bf10c1298bab2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Mon, 30 Dec 2002 10:53:34 +0000 Subject: [PATCH] Changed assertin in set_ent_visibility. [r577] --- ir/tr/entity.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ir/tr/entity.c b/ir/tr/entity.c index 3c5d04cb2..6e305b41c 100644 --- a/ir/tr/entity.c +++ b/ir/tr/entity.c @@ -248,7 +248,11 @@ get_entity_visibility (entity *ent) { INLINE void set_entity_visibility (entity *ent, ent_visibility vis) { - if (vis != local) assert(ent->allocation == static_allocated); + if (vis != local) + assert((ent->allocation == static_allocated) || + (ent->allocation == automatic_allocated)); + // @@@ Test that the owner type is not local, but how?? + // && get_class_visibility(get_entity_owner(ent)) != local)); ent->visibility = vis; } -- 2.20.1