* != 0 else
*/
static int check_entity(entity *ent) {
+ int rem_vpi;
+
current_ir_graph = get_const_code_irg();
if (constants_on_wrong_irg(ent)) {
assert(0 && "Contants placed on wrong IRG");
return error_const_on_wrong_irg;
}
+ 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))) &&
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));
"inherited entities must have constant pointing to existent entity.");
}
- return 0;
+ return no_error;
}
/*