Skip to content

Commit f967545

Browse files
committed
Fix self check
1 parent db0039c commit f967545

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mypyc/irbuild/expression.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -784,19 +784,19 @@ def try_specialize_in_expr(
784784
else:
785785
builder.add_bool_branch(bool_val, next_block, out)
786786
builder.activate_block(next_block)
787-
result = Register(bool_rprimitive)
787+
result_reg = Register(bool_rprimitive)
788788
end = BasicBlock()
789789
if op == "in":
790790
values = builder.false(), builder.true()
791791
else:
792792
values = builder.true(), builder.false()
793-
builder.assign(result, values[0], line)
793+
builder.assign(result_reg, values[0], line)
794794
builder.goto(end)
795795
builder.activate_block(out)
796-
builder.assign(result, values[1], line)
796+
builder.assign(result_reg, values[1], line)
797797
builder.goto(end)
798798
builder.activate_block(end)
799-
return result
799+
return result_reg
800800
# x in [y]/(y) -> x == y
801801
# x not in [y]/(y) -> x != y
802802
elif n_items == 1:

0 commit comments

Comments
 (0)