Fixed compilation error

This commit is contained in:
Dmitry Stogov 2023-09-28 20:49:03 +03:00
parent 51a37f159b
commit 56bb320b81

View File

@ -516,7 +516,7 @@ static int ir_emit_func(ir_ctx *ctx, const char *name, FILE *f)
ir_emit_phi(ctx, f, i, insn, bb); ir_emit_phi(ctx, f, i, insn, bb);
break; break;
case IR_VAR: case IR_VAR:
ir_use_list *use_list = &ctx->use_lists[i]; use_list = &ctx->use_lists[i];
if (use_list->count > 0) { if (use_list->count > 0) {
fprintf(f, "\t%%d%d = alloca %s\n", i, ir_type_llvm_name[insn->type]); fprintf(f, "\t%%d%d = alloca %s\n", i, ir_type_llvm_name[insn->type]);
} }