added Win32 "support"
[libfirm] / ir / tr / trvrfy.c
index 9a8b8aa..6c707ea 100644 (file)
@@ -168,12 +168,16 @@ static int constants_on_wrong_irg(entity *ent) {
  *  != 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)))                &&
@@ -181,6 +185,7 @@ static int check_entity(entity *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));
@@ -188,7 +193,7 @@ static int check_entity(entity *ent) {
            "inherited entities must have constant pointing to existent entity.");
   }
 
-  return 0;
+  return no_error;
 }
 
 /*