-static void make_entity_to_description(type_or_ent *tore, void *env) {
- if (get_kind(tore) == k_entity) {
- ir_entity *ent = (ir_entity *)tore;
+/**
+ * Type walker, set the peculiarity of entities which graphs
+ * gets removed to peculiarity_description.
+ */
+static void make_entity_to_description(type_or_ent tore, void *env) {
+ if (is_entity(tore.ent)) {
+ ir_entity *ent = tore.ent;