X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Ftrouts.c;h=9a89857c4f16629ace38de14eb800cc3c2357714;hb=f6aeac6a547a52beb3cb663c5e63c05c9c3728ea;hp=96e6016f99f3ffb1165e843db7d23a13bdf1ed4d;hpb=b75bd7505027badb025b45a301f8ee84d1f9e6ae;p=libfirm diff --git a/ir/ana/trouts.c b/ir/ana/trouts.c index 96e6016f9..9a89857c4 100644 --- a/ir/ana/trouts.c +++ b/ir/ana/trouts.c @@ -187,7 +187,7 @@ static ir_type **get_type_arraytype_array(const ir_type *tp) { return res; } -const void set_type_arraytype_array(const ir_type *tp, ir_type **pts) { +void set_type_arraytype_array(const ir_type *tp, ir_type **pts) { ir_type **old = pmap_get(type_arraytype_map, tp); if (old != pts) pmap_insert(type_arraytype_map, tp, (void *)pts); @@ -548,10 +548,10 @@ static void chain_accesses(ir_node *n, void *env) { ir_node *addr; (void) env; - if (get_irn_op(n) == op_Alloc) { + if (is_Alloc(n)) { add_type_alloc(get_Alloc_type(n), n); return; - } else if (get_irn_op(n) == op_Cast) { + } else if (is_Cast(n)) { add_type_cast(get_Cast_type(n), n); return; } else if (is_Sel(n)) { @@ -562,7 +562,7 @@ static void chain_accesses(ir_node *n, void *env) { return; } else if (is_memop(n)) { addr = get_memop_ptr(n); - } else if (get_irn_op(n) == op_Call) { + } else if (is_Call(n)) { addr = get_Call_ptr(n); if (! is_Sel(addr)) return; /* Sels before Calls mean a Load / polymorphic Call. */ } else {