Skip to content

Commit

Permalink
add a couple comments
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Mar 19, 2024
1 parent c3e0ac9 commit 2a7cb0b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vyper/venom/ir_node_to_venom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 2a7cb0b

Please sign in to comment.