Skip to content

Commit

Permalink
fix: type annotation of helper function (#3702)
Browse files Browse the repository at this point in the history
Fixed the signature of _append_return_for_stack_operand() to take the
context not the basic block
  • Loading branch information
harkal committed Dec 20, 2023
1 parent b0ea5b6 commit 5a67b68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vyper/venom/ir_node_to_venom.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ def _get_variable_from_address(


def _append_return_for_stack_operand(
bb: IRBasicBlock, symbols: SymbolTable, ret_ir: IRVariable, last_ir: IRVariable
ctx: IRFunction, symbols: SymbolTable, ret_ir: IRVariable, last_ir: IRVariable
) -> None:
bb = ctx.get_basic_block()
if isinstance(ret_ir, IRLiteral):
sym = symbols.get(f"&{ret_ir.value}", None)
new_var = bb.append_instruction("alloca", 32, ret_ir)
Expand Down

0 comments on commit 5a67b68

Please sign in to comment.