bug fix for deleting irgs
authorBoris Boesler <boesler@ipd.info.uni-karlsruhe.de>
Tue, 7 Dec 2004 12:15:32 +0000 (12:15 +0000)
committerBoris Boesler <boesler@ipd.info.uni-karlsruhe.de>
Tue, 7 Dec 2004 12:15:32 +0000 (12:15 +0000)
[r4584]

ir/tr/entity.c

index 0eb451c..e49e484 100644 (file)
@@ -1148,6 +1148,8 @@ set_entity_irg(entity *ent, ir_graph *irg) {
    * inherited um! */
   /* assert(irg); */
   assert((irg  && ent->peculiarity == peculiarity_existent) ||
+        (!irg && (ent->peculiarity == peculiarity_existent)
+         && (ent -> visibility == visibility_external_allocated)) ||
          (!irg && ent->peculiarity == peculiarity_description) ||
          (!irg && ent->peculiarity == peculiarity_inherited));
   ent->irg = irg;