remove #ifdef HAVE_CONFIG_Hs
[libfirm] / ir / tr / tr_inheritance.c
index 4438165..0b67580 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -23,9 +23,7 @@
  * @author  Goetz Lindenmaier
  * @version $Id$
  */
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
 
 #include "debug.h"
 #include "typerep.h"
@@ -224,7 +222,7 @@ static pset *get_type_map(const ir_type *tp, dir d) {
 static void compute_down_closure(ir_type *tp) {
        pset *myset, *subset;
        int i, n_subtypes, n_members, n_supertypes;
-       unsigned long master_visited = get_master_type_visited();
+       ir_visited_t master_visited = get_master_type_visited();
 
        assert(is_Class_type(tp));
 
@@ -278,7 +276,7 @@ static void compute_down_closure(ir_type *tp) {
 static void compute_up_closure(ir_type *tp) {
        pset *myset, *subset;
        int i, n_subtypes, n_members, n_supertypes;
-       unsigned long master_visited = get_master_type_visited();
+       ir_visited_t master_visited = get_master_type_visited();
 
        assert(is_Class_type(tp));
 
@@ -621,7 +619,7 @@ void verify_irn_class_cast_state(ir_node *n, void *env) {
        ir_type             *fromtype, *totype;
        int                 ref_depth = 0;
 
-       if (get_irn_op(n) != op_Cast) return;
+       if (!is_Cast(n)) return;
 
        fromtype = get_irn_typeinfo_type(get_Cast_op(n));
        totype   = get_Cast_type(n);