Skip to content

Commit 5b15955

Browse files
fix(tcg/optimize): constant_folding_cond2 logic error
1 parent 5536354 commit 5b15955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcg/optimize.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ static int do_constant_folding_cond2(OptContext *ctx, TCGOp *op, TCGArg *args)
936936
op2->args[0] = t2;
937937
op2->args[1] = ah;
938938
op2->args[2] = bh;
939-
fold_and(ctx, op1);
939+
fold_and(ctx, op2);
940940

941941
args[0] = t1;
942942
args[1] = t2;

0 commit comments

Comments
 (0)