Skip to content

Commit

Permalink
remove dead variable
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Nov 22, 2024
1 parent b460c17 commit e95de4b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vyper/venom/ir_node_to_venom.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,14 @@
SymbolTable = dict[str, Optional[IROperand]]
_alloca_table: SymbolTable = None # type: ignore
MAIN_ENTRY_LABEL_NAME = "__main_entry"
_external_functions: dict[int, SymbolTable] = None # type: ignore


# convert IRnode directly to venom
def ir_node_to_venom(ir: IRnode) -> IRContext:
_ = ir.unique_symbols # run unique symbols check

global _alloca_table, _external_functions
global _alloca_table
_alloca_table = {}
_external_functions = {}

ctx = IRContext()
fn = ctx.create_function(MAIN_ENTRY_LABEL_NAME)
Expand Down Expand Up @@ -240,7 +238,7 @@ def pop_source(*args, **kwargs):
def _convert_ir_bb(fn, ir, symbols):
assert isinstance(ir, IRnode), ir
# TODO: refactor these to not be globals
global _break_target, _continue_target, _alloca_table, _external_functions
global _break_target, _continue_target, _alloca_table

# keep a map from external functions to all possible entry points

Expand Down

0 comments on commit e95de4b

Please sign in to comment.