X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestabs.c;h=02c243d78f4682cdf9ec9b75689eb65bf6828044;hb=ae9fd2c229cc7f4c724ce9ccc9263c16d77670fe;hp=3a164ae68605beea32b6beee9674484a2f78ca80;hpb=eebab16e6be8c73ebb7cb01d04567136f36b7337;p=libfirm diff --git a/ir/be/bestabs.c b/ir/be/bestabs.c index 3a164ae68..02c243d78 100644 --- a/ir/be/bestabs.c +++ b/ir/be/bestabs.c @@ -338,10 +338,10 @@ static void print_array_type(stabs_handle *h, ir_type *tp, int local) ir_type *etp = get_array_element_type(tp); size_t i, n = get_array_n_dimensions(tp); unsigned type_num = local ? h->next_type_nr++ : get_type_number(h, tp); - int *perm; + size_t *perm; be_emit_irprintf("%u=a", type_num); - NEW_ARR_A(size_t, perm, n); + perm = ALLOCAN(size_t, n); for (i = 0; i < n; ++i) { perm[i] = get_array_order(tp, i); } @@ -699,7 +699,8 @@ static void stabs_method_begin(dbg_handle *handle, const ir_entity *ent) /* create the method entry */ mtp = get_entity_type(ent); - mtp = get_type_unlowered(mtp); + if (is_lowered_type(mtp)) + mtp = get_associated_type(mtp); if (get_method_n_ress(mtp) > 0) rtp = get_method_res_type(mtp, 0); else