From 56bb320b8176f9a44f11595cce2b843597836888 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 28 Sep 2023 20:49:03 +0300 Subject: [PATCH] Fixed compilation error --- ir_emit_llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir_emit_llvm.c b/ir_emit_llvm.c index 0f4c909..9205e19 100644 --- a/ir_emit_llvm.c +++ b/ir_emit_llvm.c @@ -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); break; case IR_VAR: - ir_use_list *use_list = &ctx->use_lists[i]; + use_list = &ctx->use_lists[i]; if (use_list->count > 0) { fprintf(f, "\t%%d%d = alloca %s\n", i, ir_type_llvm_name[insn->type]); }