X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftr_inheritance.c;h=0b6758038aa580a1a9ed77b9954b309b3cb6b960;hb=246d0a3ac5d4cef9de6532ffa027b6a53e1e09ac;hp=4438165273eb7269297f23ba574b26a4d73f73f9;hpb=9bf7b5a5ca0ff9081f0dfa19976d54e17e1b7416;p=libfirm diff --git a/ir/tr/tr_inheritance.c b/ir/tr/tr_inheritance.c index 443816527..0b6758038 100644 --- a/ir/tr/tr_inheritance.c +++ b/ir/tr/tr_inheritance.c @@ -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);