Don't print BIND-ing information for removed nodes (replaced by NOPs)

This commit is contained in:
Dmitry Stogov 2023-03-21 13:53:06 +03:00
parent 87dbdcea0d
commit 50b3a7df35

View File

@ -111,7 +111,7 @@ void ir_save(ir_ctx *ctx, FILE *f)
} else {
fprintf(f, ");");
}
if (ctx->binding) {
if ((flags & IR_OP_FLAG_DATA) && ctx->binding) {
ir_ref var = ir_binding_find(ctx, i);
if (var) {
if (var >= 0) {