@@ -5501,9 +5501,9 @@ compiler_async_comprehension_generator(struct compiler *c, location loc,
55015501 else {
55025502 /* Sub-iter - calculate on the fly */
55035503 VISIT (c , expr , gen -> iter );
5504- ADDOP (c , LOC (gen -> iter ), GET_AITER );
55055504 }
55065505 }
5506+ ADDOP (c , LOC (gen -> iter ), GET_AITER );
55075507
55085508 USE_LABEL (c , start );
55095509 /* Runtime will push a block here, so we need to account for that */
@@ -5790,19 +5790,6 @@ pop_inlined_comprehension_state(struct compiler *c, location loc,
57905790 return SUCCESS ;
57915791}
57925792
5793- static inline int
5794- compiler_comprehension_iter (struct compiler * c , comprehension_ty comp )
5795- {
5796- VISIT (c , expr , comp -> iter );
5797- if (comp -> is_async ) {
5798- ADDOP (c , LOC (comp -> iter ), GET_AITER );
5799- }
5800- else {
5801- ADDOP (c , LOC (comp -> iter ), GET_ITER );
5802- }
5803- return SUCCESS ;
5804- }
5805-
58065793static int
58075794compiler_comprehension (struct compiler * c , expr_ty e , int type ,
58085795 identifier name , asdl_comprehension_seq * generators , expr_ty elt ,
@@ -5824,9 +5811,7 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type,
58245811
58255812 outermost = (comprehension_ty ) asdl_seq_GET (generators , 0 );
58265813 if (is_inlined ) {
5827- if (compiler_comprehension_iter (c , outermost )) {
5828- goto error ;
5829- }
5814+ VISIT (c , expr , outermost -> iter );
58305815 if (push_inlined_comprehension_state (c , loc , entry , & inline_state )) {
58315816 goto error ;
58325817 }
0 commit comments