- else
- low_call = be_new_Call(irg, bl, curr_mem, curr_sp, call_ptr, curr_res_proj, n_low_args, in);
+ else
+ low_call = be_new_Call(irg, bl, curr_mem, curr_sp, call_ptr, curr_res_proj + pset_count(caller_save), n_low_args, in);
+
+ set_irn_dbg_info(low_call, get_irn_dbg_info(irn));
+
+ /*
+ TODO:
+ Set the register class of the call address to the same as the stack pointer's.
+ That' probably buggy for some architectures.
+ */
+ be_node_set_reg_class(low_call, be_pos_Call_ptr, sp->reg_class);