Skip to content

Commit c10cbb0

Browse files
Update constant_fold.py
1 parent 0c5e974 commit c10cbb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/irbuild/constant_fold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def constant_fold_expr(builder: IRBuilder, expr: Expression) -> ConstantValue |
7777
cond = constant_fold_expr(builder, expr.cond)
7878
if cond is not None:
7979
value_expr = expr.if_expr if cond else expr.else_expr
80-
return constant_fold_expr(builder, expr.cond)
80+
return constant_fold_expr(builder, value_expr)
8181
return None
8282

8383

0 commit comments

Comments
 (0)