mirror of
https://github.com/danog/ir.git
synced 2024-12-02 17:55:40 +01:00
Fixed compilation warnings
This commit is contained in:
parent
678a6af863
commit
9cec28c188
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user