From: Matthias Braun Date: Thu, 19 Jul 2007 17:06:39 +0000 (+0000) Subject: more asserts X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b9c29a477d8d93484ee66b827857a0e67102a189;p=libfirm more asserts [r15264] --- diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 3f230b56d..16a9c6b11 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -608,6 +608,7 @@ static ir_node *adjust_call(be_abi_irg_t *env, ir_node *irn, ir_node *curr_sp) proj = get_Proj_proj(res); assert(proj < n_res); + assert(res_projs[proj] == NULL); res_projs[proj] = res; } res_proj = irn; @@ -657,6 +658,9 @@ static ir_node *adjust_call(be_abi_irg_t *env, ir_node *irn, ir_node *curr_sp) ir_node *proj = res_projs[i]; be_abi_call_arg_t *arg = get_call_arg(call, 1, i); + /* returns values on stack not supported yet */ + assert(arg->in_reg); + /* shift the proj number to the right, since we will drop the unspeakable Proj_T from the Call. Therefore, all real argument