Fixed compilation warnings

This commit is contained in:
Dmitry Stogov 2023-06-22 14:50:14 +03:00
parent 678a6af863
commit 9cec28c188
2 changed files with 4 additions and 4 deletions

View File

@ -1221,7 +1221,7 @@ static void ir_emit_prologue(ir_ctx *ctx)
uint32_t i; uint32_t i;
ir_reg prev = IR_REG_NONE; ir_reg prev = IR_REG_NONE;
ir_reg fp = (ctx->flags & IR_USE_FRAME_POINTER) ? IR_REG_FRAME_POINTER : IR_REG_STACK_POINTER; ir_reg fp = (ctx->flags & IR_USE_FRAME_POINTER) ? IR_REG_FRAME_POINTER : IR_REG_STACK_POINTER;
ir_regset used_preserved_regs = ctx->used_preserved_regs; ir_regset used_preserved_regs = (ir_regset)ctx->used_preserved_regs;
if (ctx->flags & IR_USE_FRAME_POINTER) { if (ctx->flags & IR_USE_FRAME_POINTER) {
offset = ctx->stack_frame_size + sizeof(void*) * 2; offset = ctx->stack_frame_size + sizeof(void*) * 2;
@ -1272,7 +1272,7 @@ static void ir_emit_epilogue(ir_ctx *ctx)
uint32_t i; uint32_t i;
ir_reg prev = IR_REG_NONE; ir_reg prev = IR_REG_NONE;
ir_reg fp = (ctx->flags & IR_USE_FRAME_POINTER) ? IR_REG_FRAME_POINTER : IR_REG_STACK_POINTER; ir_reg fp = (ctx->flags & IR_USE_FRAME_POINTER) ? IR_REG_FRAME_POINTER : IR_REG_STACK_POINTER;
ir_regset used_preserved_regs = ctx->used_preserved_regs; ir_regset used_preserved_regs = (ir_regset)ctx->used_preserved_regs;
if (ctx->flags & IR_USE_FRAME_POINTER) { if (ctx->flags & IR_USE_FRAME_POINTER) {
offset = ctx->stack_frame_size + sizeof(void*) * 2; offset = ctx->stack_frame_size + sizeof(void*) * 2;

View File

@ -2138,7 +2138,7 @@ static void ir_emit_prologue(ir_ctx *ctx)
if (ctx->used_preserved_regs) { if (ctx->used_preserved_regs) {
int offset; int offset;
uint32_t i; uint32_t i;
ir_regset used_preserved_regs = ctx->used_preserved_regs; ir_regset used_preserved_regs = (ir_regset)ctx->used_preserved_regs;
if (ctx->flags & IR_USE_FRAME_POINTER) { if (ctx->flags & IR_USE_FRAME_POINTER) {
offset = 0; offset = 0;
@ -2175,7 +2175,7 @@ static void ir_emit_epilogue(ir_ctx *ctx)
if (ctx->used_preserved_regs) { if (ctx->used_preserved_regs) {
int offset; int offset;
uint32_t i; uint32_t i;
ir_regset used_preserved_regs = ctx->used_preserved_regs; ir_regset used_preserved_regs = (ir_regset)ctx->used_preserved_regs;
if (ctx->flags & IR_USE_FRAME_POINTER) { if (ctx->flags & IR_USE_FRAME_POINTER) {
offset = 0; offset = 0;