File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1223,7 +1223,6 @@ def gen_condition(self) -> None:
1223
1223
1224
1224
def begin_body (self ) -> None :
1225
1225
builder = self .builder
1226
- line = self .line
1227
1226
1228
1227
for gen in self .gens :
1229
1228
gen .begin_body ()
@@ -1235,8 +1234,11 @@ def begin_body(self) -> None:
1235
1234
[None ] * len (self .gens ),
1236
1235
)
1237
1236
1238
- result = builder .accept (call_expr )
1239
- builder .assign (builder .get_assignment_target (self .index ), result , line )
1237
+ # TODO: debug redundant box->unbox op in builder.accept and then replace this
1238
+ from mypyc .irbuild .expression import transform_call_expr
1239
+
1240
+ result = transform_call_expr (builder , call_expr )
1241
+ builder .assign (builder .get_assignment_target (self .index ), result , self .line )
1240
1242
1241
1243
def gen_step (self ) -> None :
1242
1244
for gen in self .gens :
You can’t perform that action at this time.
0 commit comments