Print BIND-ing information for LOAD nodes

This commit is contained in:
Dmitry Stogov 2023-03-21 18:06:47 +03:00
parent ba56eb5497
commit e5abfc119d

View File

@ -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) {