diff --git a/ir_save.c b/ir_save.c index f0f785c..4802e67 100644 --- a/ir_save.c +++ b/ir_save.c @@ -111,7 +111,7 @@ void ir_save(ir_ctx *ctx, FILE *f) } else { fprintf(f, ");"); } - if ((flags & IR_OP_FLAG_DATA) && ctx->binding) { + if (((flags & IR_OP_FLAG_DATA) || ((flags & IR_OP_FLAG_MEM) && insn->type != IR_VOID)) && ctx->binding) { ir_ref var = ir_binding_find(ctx, i); if (var) { if (var >= 0) {