From 2a7cb0bbd397660b4909b513e8d5d2530d0a1688 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Tue, 19 Mar 2024 11:43:04 -0400 Subject: [PATCH] add a couple comments --- vyper/venom/ir_node_to_venom.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vyper/venom/ir_node_to_venom.py b/vyper/venom/ir_node_to_venom.py index 5100af4c2c..34daf350ae 100644 --- a/vyper/venom/ir_node_to_venom.py +++ b/vyper/venom/ir_node_to_venom.py @@ -194,8 +194,13 @@ def _handle_internal_func( _convert_ir_bb(ctx, ir.args[0].args[2], symbols) -def _convert_ir_simple_node( ctx: IRFunction, ir: IRnode, symbols: SymbolTable) -> Optional[IRVariable]: - args = reversed([_convert_ir_bb(ctx, arg, symbols) for arg in ir.args]) +def _convert_ir_simple_node( + ctx: IRFunction, ir: IRnode, symbols: SymbolTable +) -> Optional[IRVariable]: + # execute in order + args = [_convert_ir_bb(ctx, arg, symbols) for arg in ir.args] + # reverse for stack + args.reverse() return ctx.get_basic_block().append_instruction(ir.value, *args) # type: ignore