From 5a67b68b4ba20d050e9a4af913823cbbf0007539 Mon Sep 17 00:00:00 2001 From: Harry Kalogirou Date: Wed, 20 Dec 2023 16:12:56 +0200 Subject: [PATCH] fix: type annotation of helper function (#3702) Fixed the signature of _append_return_for_stack_operand() to take the context not the basic block --- vyper/venom/ir_node_to_venom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vyper/venom/ir_node_to_venom.py b/vyper/venom/ir_node_to_venom.py index e2ce28a8f9..0aaf6aba03 100644 --- a/vyper/venom/ir_node_to_venom.py +++ b/vyper/venom/ir_node_to_venom.py @@ -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)