X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Frta.c;h=6c0b869b50c205f4f341032b0ae68f4acbebcf86;hb=1479bfdba32d70f164f61f1bdc8e31190df1269f;hp=d3235920df9dd81a20e05122675bbe76d4365e88;hpb=049e7746fb729a28e90e69f02899c76c7b98b275;p=libfirm diff --git a/ir/ana/rta.c b/ir/ana/rta.c index d3235920d..6c0b869b5 100644 --- a/ir/ana/rta.c +++ b/ir/ana/rta.c @@ -353,7 +353,7 @@ static void force_description (ir_entity *ent, ir_entity *addr) ir_node *f_addr = get_atomic_ent_value (over); ir_entity *impl_ent = get_SymConst_entity (f_addr); - assert ((get_irn_op(f_addr) == op_SymConst) && "can't do complex addrs"); + assert(is_SymConst(f_addr) && "can't do complex addrs"); if (impl_ent == addr) { assert (0 && "gibt's denn sowas"); force_description (over, addr); @@ -451,10 +451,10 @@ void rta_init (int do_verbose) * Changes the peculiarity of entities that represents * dead graphs to peculiarity_description. */ -static void make_entity_to_description(type_or_ent *tore, void *env) { +static void make_entity_to_description(type_or_ent tore, void *env) { (void) env; - if (get_kind(tore) == k_entity) { - ir_entity *ent = (ir_entity *)tore; + if (is_entity(tore.ent)) { + ir_entity *ent = tore.ent; if ((is_Method_type(get_entity_type(ent))) && (get_entity_peculiarity(ent) != peculiarity_description) &&