- /* first check, if the graph exists */
- irg = get_entity_irg(ent);
- if (irg)
- add_irg_additional_properties(irg, properties);
- else {
- mtp_additional_properties mask = ent->attr.mtd_attr.irg_add_properties;
-
- if (mask & mtp_property_inherited)
- mask = get_method_additional_properties(get_entity_type(ent));
-
- /* do not allow to set the mtp_property_inherited flag or
- * the automatic inheritance of flags will not work */
- ent->attr.mtd_attr.irg_add_properties = mask | (properties & ~mtp_property_inherited);
- }
+ /* do not allow to set the mtp_property_inherited flag or
+ * the automatic inheritance of flags will not work */
+ ent->attr.mtd_attr.properties |= properties;