mirror of
https://github.com/danog/ir.git
synced 2025-01-22 13:41:11 +01:00
Fixed compilation error
This commit is contained in:
parent
51a37f159b
commit
56bb320b81
@ -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]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user