+
+ rem_vpi = get_visit_pseudo_irgs();
+ set_visit_pseudo_irgs(1);
+ if ((get_entity_peculiarity(ent) == peculiarity_existent) &&
+ (get_entity_visibility(ent) != visibility_external_allocated) &&
+ (is_method_type(get_entity_type(ent))) &&
+ (!get_entity_irg(ent) || !(is_ir_graph(get_entity_irg(ent))))) {
+ assert(0 && "Method ents with pec_exist must have an irg");
+ return error_existent_entity_without_irg;
+ }
+ set_visit_pseudo_irgs(rem_vpi);
+
+ if (get_entity_peculiarity(ent) == peculiarity_inherited) {
+ entity *impl = get_SymConst_entity(get_atomic_ent_value(ent));
+ assert(get_entity_peculiarity(impl) == peculiarity_existent &&
+ "inherited entities must have constant pointing to existent entity.");
+ }
+
+ return no_error;