Made frame types final classes.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 5 Oct 2006 13:41:16 +0000 (13:41 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 5 Oct 2006 13:41:16 +0000 (13:41 +0000)
[r8317]

ir/tr/type.c

index 80f2dda..4a27b75 100644 (file)
@@ -1991,6 +1991,9 @@ ir_type *new_type_frame(ident *name)
   /* Remove type from type list.  Must be treated differently than other types. */
   remove_irp_type(res);
 
+  /* It is not possible to derive from the frame type. Set the final flag. */
+  set_class_final(res, 1);
+
   return res;
 }