mirror of
https://github.com/danog/ir.git
synced 2024-11-30 04:39:43 +01:00
Add assertion when allocated preserved register is not saved in "fixed" frame prologue
This commit is contained in:
parent
761c50488e
commit
4fb50d85aa
@ -4780,6 +4780,7 @@ static void ir_calc_stack_frame_size(ir_ctx *ctx, ir_backend_data *data)
|
||||
if (!IR_REGSET_IN(data->used_preserved_regs, ival->reg)
|
||||
&& !IR_REGSET_IN(fixed_regset, ival->reg)
|
||||
&& IR_REGSET_IN(IR_REGSET_PRESERVED, ival->reg)) {
|
||||
IR_ASSERT(!ctx->fixed_save_regset && "NIY"); // TODO: Preserved reg and fixed frame conflict ???
|
||||
IR_REGSET_INCL(data->used_preserved_regs, ival->reg);
|
||||
additional_size += sizeof(void*);
|
||||
}
|
||||
|
@ -7372,6 +7372,7 @@ static void ir_calc_stack_frame_size(ir_ctx *ctx, ir_backend_data *data)
|
||||
if (!IR_REGSET_IN(data->used_preserved_regs, ival->reg)
|
||||
&& !IR_REGSET_IN(fixed_regset, ival->reg)
|
||||
&& IR_REGSET_IN(IR_REGSET_PRESERVED, ival->reg)) {
|
||||
IR_ASSERT(!ctx->fixed_save_regset && "NIY"); // TODO: Preserved reg and fixed frame conflict ???
|
||||
IR_REGSET_INCL(data->used_preserved_regs, ival->reg);
|
||||
additional_size += sizeof(void*);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user